Systems and methods for providing client-side accelerated access to remote applications via TCP pooling

ABSTRACT

The present invention is directed towards systems and methods for dynamically deploying and executing acceleration functionality on a client to improve the performance and delivery of remotely accessed applications. In one embodiment, the client-side acceleration functionality is provided by an acceleration program that performs a transport layer connection pooling technique for improving performance of communications and delivery of a remotely-accessed application. The acceleration program establishes a transport layer connection from the client to the server that can be used by multiple applications on the client, or that is otherwise shared among applications of the client. The acceleration program maintains the transport layer connection open to reduce the number of transport layer connection requests and number of transport layer connections established with the server for an application or multiple applications running on the client.

RELATED APPLICATIONS

This present application claims priority to U.S. Provisional Patent Application No. 60/640,464 entitled “SYSTEM AND METHOD FOR DYNAMIC ACCELERATION OF REMOTELY-ACCESSED APPLICATION,” filed Dec. 20, 2004, U.S. patent application Ser. No. 11/039,946, entitled “SYSTEM AND METHOD FOR ESTABLISHING A VIRTUAL PRIVATE NETWORK,” filed Jan. 24, 2005, and U.S. patent application Ser. No. 09/960,437, entitled “APPARATUS, METHOD AND COMPUTER PROGRAM FOR EFFICIENTLY POOLING CONNECTIONS BETWEEN CLIENTS AND SERVERS,” filed Oct. 28, 2000, all of which are incorporated herein by reference.

FIELD OF THE INVENTION

The present invention generally relates to data communication networks. In particular, the present invention relates to systems and methods for providing a client-side acceleration technique of transport layer connection pooling.

BACKGROUND OF THE INVENTION

Enterprises are increasingly being asked to provide access to applications to employees, partners and service provides located outside the perimeter of the enterprise network. However, congested wide area network (WAN) links, heavily loaded servers, and low-bandwidth remote connections can impede access to and slow performance of remotely-accessed applications. These factors can substantially impact and reduce employee productivity and the return on investment in enterprise application software and infrastructure. Furthermore, these factors can also frustrate and alienate users from using remotely-accessed application. To obtain a satisfactory return on investment from these applications, enterprises need to ensure that all users, regardless of location, can use the applications quickly and effectively.

One approach for improving the performance of remotely-accessed applications is to install an appliance within the enterprise network that performs certain functions to accelerate application performance. The appliance is typically installed as a gateway between the WAN on a pubic network and the enterprise servers on a private data network and processes data passing between the two. When such an appliance is dedicated to performing acceleration functions, it is often referred to as an “accelerator.” Because the accelerator is deployed within the enterprise network, it is more effective at reducing latency on the enterprise network itself and in reducing the load on the enterprise servers. However, it is less effective at addressing delays due to problems arising outside the enterprise network, such as congested WAN links and low-bandwidth remote connections.

In another approach, some companies offer application acceleration solutions for the client side of the WAN, or the client-side LAN. These solutions typically fall into two main categories: (1) network appliances that can be installed as a gateway between the client and the WAN and that perform application acceleration functions; and (2) application acceleration servers residing on a client-side LAN. However, installing and maintaining accelerator servers or appliances on the client-side LAN consumes time, expense and resources. In many cases, an enterprise network can be accessed from many different remote sites, such as from many different branch offices. To deploy client-side acceleration for all remote clients, the enterprise would have to install and maintain an appliance-based or server-based accelerator at each remote site. Additionally, if the need to access applications from a remote site is sporadic, the time, expense and resources of installing and maintaining such an accelerator on the client-side LAN at the site may exceed the benefit.

Furthermore, a solution of an appliance or server-based accelerator on the client-side LAN can be a confining one because it limits acceleration of client-side LANs to locations having server-based or appliance-based accelerators. With users having access to multiple computing devices at different remote locations coupled with the ubiquity of mobile computing devices and the increasing availability of wireless network access, a user may access a network from a wide range of remote access points at any point in time. For example, during the course of a user roaming between access points, a user may be able to access the enterprise network from an office desktop computer, a smartphone or personal digital assistant, a laptop computer, a home office computer, or a computer at a remote office location, such as at a customer or client office. As such, the user may desire to access remote applications via the enterprise network at any remote location and on any one of multiple computers available to the user. Each of the remote access point and/or multiple computing devices available to the user may have a different client-side LAN connection to the enterprise network. The enterprise may not have the time, expense and resources to deploy a client-side LAN solution at all the possible remote access points or for all the possible computing devices, or to continually install and maintain such solutions with the increasing number of remote access points and computing devices of the user. Additionally, the user may access the enterprise network from a public network, private network, or a client-side LAN not accessible to or under the control or management of the enterprise. As such, an enterprise may not be able to deploy a client-side LAN accelerator to all these access points.

What is desired, then, are systems and methods that provide client-side acceleration capabilities for improving the performance of remotely-accessed applications. The desired systems and methods should not require the installation and maintenance of a network appliance or a server running acceleration software between the client and the WAN. To further improve the performance of remotely-accessed applications, it would also be desired if accelerator functions could be implemented both on the client side and the enterprise network side of the WAN.

BRIEF SUMMARY OF THE INVENTION

The present invention is directed towards systems and methods for dynamically deploying and executing acceleration functionality on a client to improve the performance and delivery of remotely accessed applications. In one embodiment, the client-side acceleration functionality is provided by an acceleration program that performs a transport layer connection pooling technique for improving performance of communications and delivery of a remotely-accessed application. The acceleration program establishes a transport layer connection from the client to the server that can be used by multiple applications on the client, or that is otherwise shared among applications of the client. The acceleration program maintains the transport layer connection open to reduce the number of transport layer connection requests and number of transport layer connections established with the server for an application or multiple applications running on the client.

In one aspect, the present invention is related to a method for accelerating access by the client to a server by pooling on the client one or more transport layer connections to the server. The method includes intercepting, by an acceleration program on the client, a first request by a first application to establish a first transport layer connection with a server, and establishing, by the acceleration program, a transport layer connection between the acceleration program and the server. The method also includes intercepting, by the acceleration program, a second request by a second application to establish a second transport layer connection with the server, and using, by the acceleration program, the established transport layer connection to provide the requested transport layer connection for the second application.

In one embodiment, the method of the present invention includes transmitting, by an appliance, the acceleration program to the client upon a request from the client to establish one a connection or a session with the server. Upon receipt of the acceleration program, the client may automatically install and execute the acceleration program. In some embodiments, the acceleration program includes a filter device driver interfaced to a transport layer of a network stack of the client. In other embodiments, the method also includes multiplexing, by the acceleration program, requests from multiple applications on the client via the established transport layer connection.

In some embodiments, the method includes performing, by the acceleration program, on the client one of the following acceleration techniques: 1) multi-protocol compression 2) transport control protocol multiplexing, 3) transport control protocol buffering, and 4) caching. In another embodiment, the acceleration program performs encryption or decryption of communications between the client and the server. In one embodiment, the method includes closing, by the acceleration program, the first transport layer connection upon receipt of a reset or finish command. In another embodiment, the method includes maintaining, by the acceleration program, the transport layer connection open during a period of idle activity between the server and the first application or the second application. In other embodiments, the acceleration program inserts in a communication from the client to the server an instruction to keep the transport layer connection open.

In one embodiment of the present invention, the method includes determining, by the acceleration program, the transport layer connection is currently being used by the first application or the second application by comparing the number of bytes transmitted to and acknowledged from the server for each application. In some embodiments, the acceleration program determines the transport layer connection is currently being used by the first application, and opens a second transport layer connection between the acceleration program and the server for use by the second application. In one embodiment, the transport layer connection is established between the acceleration program and an appliance in communications with the server. In some embodiment, the appliance establishes a pool of one or more transport layer connections for use by the acceleration program

In another embodiment, the method includes executing, by the client, the acceleration program transparently to a network layer, a session layer, or application layer of a network stack of the client. In other embodiments, the method includes executing, by the client, the acceleration program transparently to one of the first application, the second application, or the server.

In another aspect, the present invention is related to a system for accelerating access by the client to one or more servers by pooling on the client one or more transport layer connections to the server. The system includes a means for intercepting, by an acceleration program on the client, a first request by a first application to establish a first transport layer connection with a server, and establishing, by the acceleration program, a transport layer connection between the acceleration program and the server. The system further includes a means for intercepting, by the acceleration program, a second request by a second application to establish a second transport layer connection with the server, and using, by the acceleration program, the established transport layer connection to provide the requested transport layer connection for the second application.

In one embodiment, the system of the present invention includes means for automatically installing and executing, by the client, the acceleration program. In another embodiment, the system includes an appliance transmitting the acceleration program to the client upon a request from the client to establish one of a connection or a session with the server. The acceleration program may include a filter device driver interfaced to a transport layer of a network stack of the client. In some embodiment, the system includes means for multiplexing, by the acceleration program, requests from a plurality of applications on the client via the second transport layer connection.

In some embodiments, the system includes the acceleration program performing on the client one of the following acceleration techniques: 1) multi-protocol compression 2) transport control protocol multiplexing, 3) transport control protocol buffering, and 4) caching. In another embodiment, the acceleration program encryption or decryption of communications between the client and the server. In one embodiment, the system includes means for closing, by the acceleration program, the first transport layer connection upon receipt of a reset or finish command. In another embodiment, the acceleration program maintains the transport layer connection open during a period of idle activity between the server and the first application or the second application. In other embodiments of the system, the acceleration program inserts in a communication from the client to the server an instruction to keep the transport layer connection open.

In one embodiment of the system, the acceleration program includes a means to determine the transport layer connection is currently being used by one of the first application or the second application by comparing the number of bytes transmitted to and acknowledged from the server for each application. In another embodiment, the acceleration program includes a means to determine the transport layer connection is currently being used by the first application, and opens a second transport layer connection between the acceleration program and the server for use by the second application. In some embodiments, the acceleration program establishes the second transport layer connection between the acceleration program and an appliance in communications with the server. In one embodiment, the appliance provides a pool of one or more transport layer connections for use by the acceleration program.

In another embodiment of the system, the executes the acceleration program transparently to a network layer, a session layer, or application layer of a network stack of the client. In other embodiments, the systems includes the client executing the acceleration program transparently to one of the first application, the second application, or the server.

The details of various embodiments of the invention are set forth in the accompanying drawings and the description below.

BRIEF DESCRIPTION OF THE FIGURES

The foregoing and other objects, aspects, features, and advantages of the invention will become more apparent and better understood by referring to the following description taken in conjunction with the accompanying drawings, in which:

FIGS. 1A and 1B are block diagrams of embodiments of a computing device for practicing an illustrative embodiment of the present invention;

FIG. 2A is a block diagram of an embodiment of a client-side acceleration program of the present invention;

FIG. 2B is a block diagram of an embodiment of a network environment for operating the client-side acceleration program with a server;

FIG. 2C is a block diagram of another embodiment of a network environment for operating the client-side acceleration program in conjunction with an appliance in communications with the server;

FIG. 2D is a block diagram of an embodiment of the appliance of the present invention;

FIG. 3A is a step diagram of an embodiment of a method of the present invention for dynamically providing and automatically installing and executing the client-side acceleration program of the present invention;

FIG. 3B is a step diagram of an embodiment of a method of the present invention for determining an application can be accelerated;

FIG. 3C is a step diagram of another embodiment of a method of the present invention of performing a plurality of acceleration techniques by the acceleration program for intercepting at the transport layer and using a kernel-level data structure;

FIG. 4A is a step diagram of another embodiment of a method of the present invention to automatically install and execute the acceleration program on the client via a first program;

FIG. 4B is a step diagram of an embodiment of a method of the present invention for a first program and the acceleration program to provide a virtual private network connectivity and perform one or more acceleration techniques;

FIG. 5 is a step diagram of an embodiment of a method of the present invention for redirecting a client's communication to a server to bypass an intermediary determined not useable to transmit the communication to the server;

FIG. 6 is a step diagram of an embodiment of a method of the present invention for performing a client-side acceleration technique of transport control protocol buffering;

FIG. 7A is a step diagram of an embodiment of a method of the present invention for performing a client-side acceleration technique of transport control protocol connection pooling;

FIG. 7B is a diagrammatic view of an example set of HTTP transactions performed by a plurality of applications via a pool of one or more transport layer connections provided by an embodiment of the present invention;

FIG. 8 is a step diagram of an embodiment of a method of the present invention for performing a client-side acceleration technique of transport control protocol multiplexing;

FIG. 9 is a diagrammatic view of an embodiment of a content length identifier of a transport layer packet; and

FIG. 10 is a diagrammatic view of another embodiment of a content length identifier of a message transmitted via multiple chunks.

The features and advantages of the present invention will become more apparent from the detailed description set forth below when taken in conjunction with the drawings, in which like reference characters identify corresponding elements throughout. In the drawings, like reference numbers generally indicate identical, functionally similar, and/or structurally similar elements.

DETAILED DESCRIPTION OF THE INVENTION

The illustrative embodiments of the present invention are directed towards the deployment and execution of client-side acceleration techniques in a network environment to improve the performance of communications between a client and a server, such as for a remotely-accessed application. In one illustrative embodiment, the present invention is directed towards the automatic installation and execution of a client-side acceleration program on a client in a manner transparent to and seamless with the operation of the client. In another illustrative embodiment, the present invention is directed towards dynamically providing by an appliance device the client-side acceleration program to the client upon determination of the device that the client's access to a server or remote application can be accelerated. In another illustrative embodiment, the present invention is directed towards an acceleration program performing one or more of the following acceleration techniques on the client: 1) multi-protocol compression 2) transport control protocol pooling, 3) transport control protocol multiplexing 4) transport control protocol buffering and 5) caching. In one illustrative embodiment, the present invention performs these acceleration techniques in an integrated and efficient manner at the transport layer using a kernel-level data structure. In yet another illustrative embodiment, the client-side acceleration program performs proxy redirection techniques to automatically bypass any intermediary devices to continuously provided access by the client to the server or a remotely accessed application.

The client-side acceleration program and functionality of the present invention may be deployed and executed on any type and form of computing device, such as a computer, network device or appliance capable of communicating on any type and form of network and performing the operations of the present invention described herein. FIGS. 1A and 1B depict block diagrams of a computing device 100 useful for practicing an embodiment of the present invention. As shown in FIGS. 1A and 1B, each computing device 100 includes a central processing unit 102, and a main memory unit 122. As shown in FIG. 1A, a typical computing device 100 may include a visual display device 124, a keyboard 126 and/or a pointing device 127, such as a mouse. Each computing device 100 may also include additional optional elements, such as one or more input/output devices 130 a-130 b (generally referred to using reference numeral 130), and a cache memory 140 in communication with the central processing unit 102.

The central processing unit 102 is any logic circuitry that responds to and processes instructions fetched from the main memory unit 122. In many embodiments, the central processing unit is provided by a microprocessor unit, such as: those manufactured by Intel Corporation of Mountain View, Calif.; those manufactured by Motorola Corporation of Schaumburg, Ill.; those manufactured by Transmeta Corporation of Santa Clara, Calif.; the RS/6000 processor, those manufactured by International Business Machines of White Plains, N.Y.; or those manufactured by Advanced Micro Devices of Sunnyvale, Calif. The computing device 100 may be based on any of these processors, or any other processor capable of operating as described herein.

Main memory unit 122 may be one or more memory chips capable of storing data and allowing any storage location to be directly accessed by the microprocessor 102, such as Static random access memory (SRAM), Burst SRAM or SynchBurst SRAM (BSRAM), Dynamic random access memory (DRAM), Fast Page Mode DRAM (FPM DRAM), Enhanced DRAM (EDRAM), Extended Data Output RAM (EDO RAM), Extended Data Output DRAM (EDO DRAM), Burst Extended Data Output DRAM (BEDO DRAM), Enhanced DRAM (EDRAM), synchronous DRAM (SDRAM), JEDEC SRAM, PC100 SDRAM, Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), SyncLink DRAM (SLDRAM), Direct Rambus DRAM (DRDRAM), or Ferroelectric RAM (FRAM). The main memory 122 may be based on any of the above described memory chips, or any other available memory chips capable of operating as described herein. In the embodiment shown in FIG. 1A, the processor 102 communicates with main memory 204 via a system bus 150 (described in more detail below). FIG. 1A depicts an embodiment of a computing device 100 in which the processor communicates directly with main memory 122 via a memory port 103. For example, in FIG. 1B the main memory 122 may be DRDRAM.

FIG. 1B depicts an embodiment in which the main processor 102 communicates directly with cache memory 140 via a secondary bus, sometimes referred to as a backside bus. In other embodiments, the main processor 102 communicates with cache memory 140 using the system bus 150. Cache memory 140 typically has a faster response time than main memory 122 and is typically provided by SRAM, BSRAM, or EDRAM.

In the embodiment shown in FIG. 1A, the processor 102 communicates with various I/O devices 130 via a local system bus 150. Various busses may be used to connect the central processing unit 102 to any of the I/O devices 130, including a VESA VL bus, an ISA bus, an EISA bus, a MicroChannel Architecture (MCA) bus, a PCI bus, a PCI-X bus, a PCI-Express bus, or a NuBus. For embodiments in which the I/O device is a video display 124, the processor 102 may use an Advanced Graphics Port (AGP) to communicate with the display 124. FIG. 1B depicts an embodiment of a computer 100 in which the main processor 102 communicates directly with I/O device 130 b via HyperTransport, Rapid I/O, or InfiniBand. FIG. 1B also depicts an embodiment in which local busses and direct communication are mixed: the processor 102 communicates with I/O device 130 a using a local interconnect bus while communicating with I/O device 130 b directly.

The computing device 100 may support any suitable installation device 116, such as a floppy disk drive for receiving floppy disks such as 3.5-inch, 5.25-inch disks or ZIP disks, a CD-ROM drive, a CD-R/RW drive, a DVD-ROM drive, tape drives of various formats, USB device, hard-drive or any other device suitable for installing software and programs such as any acceleration software 120, or portion thereof, related to the present invention.

The computing device 100 may further comprise a storage device 128, such as one or more hard disk drives or redundant arrays of independent disks, for storing an operating system and other related software, and for storing application software programs such as any program related to the acceleration program 120 of the present invention. Optionally, any of the installation devices 116 could also be used as the storage device 128. Additionally, the operating system and the software can be run from a bootable medium, for example, a bootable CD, such as KNOPPIX®, a bootable CD for GNU/Linux that is available as a GNU/Linux distribution from knoppix.net.

Furthermore, the computing device 100 may include a network interface 118 to interface to a Local Area Network (LAN), Wide Area Network (WAN) or the Internet through a variety of connections including, but not limited to, standard telephone lines, LAN or WAN links (e.g., 802.11, T1, T3, 56 kb, X.25), broadband connections (e.g., ISDN, Frame Relay, ATM), wireless connections, or some combination of any or all of the above. The network interface 118 may comprise a built-in network adapter, network interface card, PCMCIA network card, card bus network adapter, wireless network adapter, USB network adapter, modem or any other device suitable for interfacing the computing device 100 to any type of network capable of communication and performing the operations described herein.

A wide variety of I/O devices 130 a-130 n may be present in the computing device 100. Input devices include keyboards, mice, trackpads, trackballs, microphones, and drawing tablets. Output devices include video displays, speakers, inkjet printers, laser printers, and dye-sublimation printers. The I/O devices may be controlled by an I/O controller 123 as shown in FIG. 1A. The I/O controller may control one or more I/O devices such as a keyboard 126 and a pointing device 127, e.g., a mouse or optical pen. Furthermore, an I/O device may also provide storage 128 and/or an installation medium 116 for the computing device 100. In still other embodiments, the computing device 100 may provide USB connections to receive handheld USB storage devices such as the USB Flash Drive line of devices manufactured by Twintech Industry, Inc. of Los Alamitos, Calif.

In some embodiments, the computing device 100 may comprise or be connected to multiple display devices 124 a-124 n, which each may be of the same or different type and/or form. As such, any of the I/O devices 130 a-130 n and/or the I/O controller 123 may comprise any type and/or form of suitable hardware, software, or combination of hardware and software to support, enable or provide for the connection and use of multiple display devices 124 a-124 n by the computing device 100. For example, the computing device 100 may include any type and/or form of video adapter, video card, driver, and/or library to interface, communicate, connect or otherwise use the display devices 124 a-124 n. In one embodiment, a video adapter may comprise multiple connectors to interface to multiple display devices 124 a-124 n. In other embodiments, the computing device 100 may include multiple video adapters, with each video adapter connected to one or more of the display devices 124 a-124 n. In some embodiments, any portion of the operating system of the computing device 100 may be configured for using multiple displays 124 a-124 n. In other embodiments, one or more of the display devices 124 a-124 n may be provided by one or more other computing devices, such as computing devices 100 a and 100 b connected to the computing device 100, for example, via a network. These embodiments may include any type of software designed and constructed to use another computer's display device as a second display device 124 a for the computing device 100. One ordinarily skilled in the art will recognize and appreciate the various ways and embodiments that a computing device 100 may be configured to have multiple display devices 124 a-124 n.

In further embodiments, an I/O device 130 may be a bridge 170 between the system bus 150 and an external communication bus, such as a USB bus, an Apple Desktop Bus, an RS-232 serial connection, a SCSI bus, a FireWire bus, a FireWire 800 bus, an Ethernet bus, an AppleTalk bus, a Gigabit Ethernet bus, an Asynchronous Transfer Mode bus, a HIPPI bus, a Super HIPPI bus, a SerialPlus bus, a SCI/LAMP bus, a FibreChannel bus, or a Serial Attached small computer system interface bus.

A computing device 100 of the sort depicted in FIGS. 1A and 1B typically operate under the control of operating systems, which control scheduling of tasks and access to system resources. The computing device 100 can be running any operating system such as any of the versions of the Microsoft® Windows operating systems, the different releases of the Unix and Linux operating systems, any version of the Mac OS® for Macintosh computers, any embedded operating system, any real-time operating system, any open source operating system, any proprietary operating system, any operating systems for mobile computing devices, or any other operating system capable of running on the computing device and performing the operations described herein. Typical operating systems include: WINDOWS 3.x, WINDOWS 95, WINDOWS 98, WINDOWS 2000, WINDOWS NT 3.51, WINDOWS NT 4.0, WINDOWS CE, and WINDOWS XP, all of which are manufactured by Microsoft Corporation of Redmond, Wash.; MacOS, manufactured by Apple Computer of Cupertino, California; OS/2, manufactured by International Business Machines of Armonk, N.Y.; and Linux, a freely-available operating system distributed by Caldera Corp. of Salt Lake City, Utah, or any type and/or form of a Unix operating system, among others.

In other embodiments, the computing device 100 may have different processors, operating systems, and input devices consistent with the device. For example, in one embodiment the computer 100 is a Treo 180, 270, 300, 600 or 650 smart phone manufactured by Palm, Inc. In this embodiment, the Treo smart phone is operated under the control of the PalmOS operating system and includes a stylus input device as well as a five-way navigator device. Moreover, the computing device 100 can be any workstation, desktop computer, laptop or notebook computer, server, handheld computer, mobile telephone, any other computer, or other form of computing or telecommunications device that is capable of communication and that has sufficient processor power and memory capacity to perform the operations described herein.

In one aspect, the present invention is related to a client-side acceleration program for performing one or more acceleration techniques to accelerate, enhance or otherwise improve a client's communications with and/or access to a server, such as accessing an application provided by a server. Referring now to FIG. 2A, a client 205 having the acceleration program 120 of the present invention is depicted. In brief overview, the client 205 operates on computing device 100 having an operating system with a kernel mode 202 and a user mode 202, and a network stack 210 with one or more layers 210 a-210 b. The client 205 may have installed and/or execute one or more applications 220 a-220 n. In some embodiments, one or more applications 220 a-220 n may communicate via the network stack 210 to a network. One of the applications 220N may also include a first program 222, for example, a program which may be used in some embodiments to install and/or execute the acceleration program 120.

The network stack 210 of the client 205 may comprise any type and form of software, or hardware, or any combinations thereof, for providing connectivity to and communications with a network. In one embodiment, the network stack 210 comprises a software implementation for a network protocol suite. The network stack 210 may comprise one or more network layers, such as any networks layers of the Open Systems Interconnection (OSI) communications model as those skilled in the art recognize and appreciate. As such, the network stack 210 may comprise any type and form of protocols for any of the following layers of the OSI model: 1) physical link layer, 2) data link layer, 3) network layer, 4) transport layer, 5) session layer, 6) presentation layer, and 7) application layer. In one embodiment, the network stack 310 may comprise a transport control protocol (TCP) over the network layer protocol of the internet protocol (IP), generally referred to as TCP/IP. In some embodiments, the TCP/IP protocol may be carried over the Ethernet protocol, which may comprise any of the family of IEEE wide-area-network (WAN) or local-area-network (LAN) protocols, such as those protocols covered by the IEEE 802.3. In some embodiments, the network stack 210 comprises any type and form of a wireless protocol, such as IEEE 802.11 and/or mobile internet protocol.

In view of a TCP/IP based network, any TCP/IP based protocol may be used, including Messaging Application Programming Interface (MAPI) (email), File Transfer Protocol (FTP), HyperText Transfer Protocol (HTTP), Common Internet File System (CIFS) protocol (file transfer), Independent Computing Architecture (ICA) protocol, Remote Desktop Protocol (RDP), Wireless Application Protocol (WAP), Mobile IP protocol, and Voice Over IP (VoIP) protocol. In another embodiment, the network stack 210 comprises any type and form of transport control protocol, such as a modified transport control protocol, for example a Transaction TCP (T/FCP), TCP with selection acknowledgements (TCP-SACK), TCP with large windows (TCP-LW), a congestion prediction protocol such as the TCP-Vegas protocol, and a TCP spoofing protocol. In other embodiments, any type and form of user datagram protocol (UDP), such as UDP over IP, may be used by the network stack 210, such as for voice communications or real-time data communications.

Furthermore, the network stack 310 may include one or more network drivers supporting the one or more layers, such as a TCP driver or a network layer driver. The network drivers may be included as part of the operating system of the computing device 100 or as part of any network interface cards or other network access components of the computing device 100. In some embodiments, any of the network drivers of the network stack 210 may be customized, modified or adapted to provide a custom or modified portion of the network stack 210 in support of any of the techniques of the present invention described herein. In other embodiments, the acceleration program 120 is designed and constructed to operate with or work in conjunction with the network stack 210 installed or otherwise provided by the operating system of the client 205.

The network stack 210 comprises any type and form of interfaces for receiving, obtaining, providing or otherwise accessing any information and data related to network communications of the client 205. In one embodiment, an interface to the network stack 210 comprises an application programming interface (API). The interface may also comprise any function call, hooking or filtering mechanism, event or call back mechanism, or any type of interfacing technique. The network stack 210 via the interface may receive or provide any type and form of data structure, such as an object, related to functionality or operation of the network stack 210. For example, the data structure may comprise information and data related to a network packet or one or more network packets. In some embodiments, the data structure comprises a portion of the network packet processed at a protocol layer of the network stack 210, such as a network packet of the transport layer. In some embodiments, the data structure 225 comprises a kernel-level data structure, while in other embodiments, the data structure 225 comprises a user-mode data structure. A kernel-level data structure may comprise a data structure obtained or related to a portion of the network stack 210 operating in kernel-mode 202, or a network driver or other software running in kernel-mode 202, or any data structure obtained or received by a service, process, task, thread or other executable instructions running or operating in kernel-mode of the operating system.

Additionally, some portions of the network stack 210 may execute or operate in kernel-mode 202, for example, the data link or network layer, while other portions execute or operate in user-mode 203, such as an application layer of the network stack 210. For example, a first portion 210 a of the network stack may provide user-mode access to the network stack 210 to an application 220 a-220 n while a second portion 210 a of the network stack 210 provides access to a network. In some embodiments, a first portion 210 a of the network stack may comprise one or more upper layers of the network stack 210, such as any of layers 5-7. In other embodiments, a second portion 210 b of the network stack 210 comprises one or more lower layers, such as any of layers 1-4. Each of the first portion 210 a and second portion 210 b of the network stack 210 may comprise any portion of the network stack 210, at any one or more network layers, in user-mode 203, kernel-mode, 202, or combinations thereof, or at any portion of a network layer or interface point to a network layer or any portion of or interface point to the user-mode 203 and kernel-mode 203.

The acceleration program 120 of the present may comprise software, hardware, or any combination of software and hardware. In some embodiments, the acceleration program 120 comprises any type and form of executable instructions constructed and designed to execute or provide the functionality and operations of the present invention as described herein. In some embodiments, the acceleration program 120 comprises any type and form of application, program, service, process, task or thread. In one embodiment, the acceleration program 120 comprises a driver, such as a network driver constructed and designed to interface and work with the network stack 210. The logic, functions, and/or operations of the executable instructions of the acceleration program 120 may perform one or more of the following acceleration techniques of the present invention: 1) multi-protocol compression 238, 2) transport control protocol pooling 224, 3) transport control protocol multiplexing 226, 4) transport control protocol buffering 228, and 5) caching via a cache manager 232, which will be described in further detail below. Additionally, the acceleration program 120 may perform encryption 234 and/or decryption of any communications received and/or transmitted by the client 205. In some embodiments, the acceleration program 120 also performs tunneling between the client 205 and another computing device 100, such as a server. In other embodiments, the acceleration program 120 provides a virtual private network connection to a server.

In some embodiments, the acceleration program 120 operates at one or more layers of the network stack 210, such as at the transport layer. In one embodiment, the acceleration program 120 comprises a filter driver, hooking mechanism, or any form and type of suitable network driver interface that interfaces to the transport layer of the network stack, such as via the transport driver interface (TDI). In some embodiments, the acceleration program 120 interfaces to a first protocol layer, such as the transport layer and another protocol layer, such as any layer above the transport protocol layer, for example, an application protocol layer. In one embodiment, the acceleration program 120 may comprise a driver complying with the Network Driver Interface Specification (NDIS), or a NDIS driver. In another embodiment, the acceleration program 120 may comprise a min-filter or a mini-port driver. In one embodiment, the acceleration program 120, or portion thereof, operates in kernel-mode 202. In another embodiment, the acceleration program 120, or portion thereof, operates in user-mode 203. In some embodiments, a portion of the acceleration program 120 operates in kernel-mode 202 while another portion of the acceleration program 120 operates in user-mode 203. In other embodiments, the acceleration program 120 operates in user-mode 203 but interfaces to a kernel-mode driver, process, service, task or portion of the operating system, such as to obtain a kernel-level data structure 225. In further embodiments, the acceleration program 120 is a user-mode application or program, such as application 220 a-220 n.

The acceleration program 120 may operate at or interface with a protocol layer in a manner transparent to any other protocol layer of the network stack 210. For example, in one embodiment, the acceleration program 120 operates or interfaces with the transport layer of the network stack 210 transparently to any protocol layer below the transport layer, such as the network layer, and any protocol layer above the transport layer, such as the session, presentation or application layer protocols. This allows the other protocol layers of the network stack 210 to operate as desired and without modification for using the acceleration program 120 of the present invention. As such, the acceleration program 120 can interface with the transport layer to accelerate any communications provided via any protocol carried by the transport layer, such as any application layer protocol over TCP/IP.

Furthermore, the acceleration program 120 may operate at or interface with the network stack 210 in a manner transparent to any application 220 a-220 n, a user of the client 205, and any other computing device, such as a server, in communications with the client 205. The acceleration program 120 may be installed and/or executed on the client 205 in a manner such as the acceleration program 120 may accelerate any communications of an application 220 a-220 n without modification of the application 220 a-220 n. In some embodiments, the user of the client 205 or a computing device in communications with the client 205 are not aware of the existence, execution or operation of the acceleration program 120. As such, in some embodiments, the acceleration program 120 is installed, executed, and/or operated transparently to an application 220 a-220 n, user of the client 205, another computing device, such as a server, or any of the protocol layers above and/or below the protocol layer interfaced to by the acceleration program 120.

In some embodiments, the acceleration program 120 performs one or more of the acceleration techniques 224, 226, 228, 232 in an integrated manner or fashion. In one embodiment, the acceleration program 128 comprises any type and form of mechanism to intercept, hook, filter, or receive communications at the transport protocol layer of the network stack 210. By intercepting a network packet of the client 205 at the transport layer and interfacing to the network stack 210 at the transport layer via a data structure, such as a kernel-level data structure 225, the acceleration program 120 can perform transport layer related acceleration techniques on the network packet, such as transport control protocol (TCP) buffering, TCP pooling and TCP multiplexing. Additionally, the acceleration program 120 can perform compression 225 on any of the protocols, or multiple-protocols, carried as payload of network packet of the transport layer protocol

In one embodiment, the acceleration program 120 uses a kernel-level data structure 225 providing access to any portion of one or more network packets, for example, a network packet comprising a request from a client 205 or a response from a server. In one embodiment, the kernel-level data structure may be used by the acceleration program 120 to perform the desired acceleration technique. In one embodiment, the acceleration program 120 is running in kernel mode 202 when using the kernel-level data structure 225, while in another embodiment, the acceleration program 120 is running in user-mode 203 when using the kernel-level data structure 225. In some embodiments, the kernel-level data structure may be copied or passed to a second kernel-level data structure, or any desired user-level data structure. Although the acceleration program 120 is generally depicted in FIG. 2A as having a first portion operating in user-mode 203 and a second portion operating in kernel-mode 202, in some embodiments, any portion of the acceleration program 120 may run in user-mode 203 or kernel-mode 202. In some embodiments, the acceleration program 120 may operate only in user-mode 203, while in other embodiments, the acceleration program 120 may operate only in kernel-mode 202.

Furthermore, by intercepting at the transport layer of the network stack 210 or obtaining access to the network packet via a kernel-level data structure 225, the acceleration program 120 can perform or apply the plurality of acceleration techniques of the present invention at a single interface point or at a single point of execution or time of executing any executable instructions of the acceleration program 120. For example, in one embodiment, in a function or set of instructions of the acceleration program 120, a plurality of the acceleration techniques may be executed, such as by calling a set of executable instructions constructed and designed to perform the acceleration technique. In some embodiments, the acceleration program 120 at one interface point, place of execution, or in a set of instructions call one or more application programming interfaces (APIs) to any program, service, process, task, thread, or executable instructions designed and constructed to provide 1) multi-protocol compression 238, 2) transport control protocol pooling 224, 3) transport control protocol multiplexing 226, 4) transport control protocol buffering 228, and 5) caching via a cache manager 232 and in some embodiments, encryption 234.

By executing the plurality of acceleration techniques at one place or location in executable instructions of the acceleration program 120 or at one protocol layer of the network stack 210, such as the transport layer, the integration of these acceleration techniques is performed more efficiently and effectively. In one aspect, the number of context switches between processes may be reduced as well as reducing the number of data structures used or copies of data structures in memory needed or otherwise used. Additionally, synchronization of and communications between any of the acceleration techniques can be performed more efficiently, such as in a tightly-coupled manner, in a set of executable instructions of the acceleration program 120. As such, any logic, rules, functionality or operations regarding the order of acceleration techniques, which techniques to perform, and data and information to be shared or passed between techniques can be performed more efficiently. The acceleration program 120 can intercept a TCP packet at the transport layer, obtain the payload of the TCP packet via a kernel-level data structure 225, and then perform desired acceleration techniques in a desired order. For example, the network packet may be first compressed and then cached. In another example, the compressed cached data may be communicated via a buffered, pooled, and/or multiplexed TCP connection to a server.

In some embodiments and still referring to FIG. 2A, a first program 222 may be used to install and/or execute the acceleration program 120, automatically, silently, transparently, or otherwise. In one embodiment, the first program 222 comprises a plugin component, such an ActiveX control or Java control or script that is loaded into and executed by an application 220 a-220 n. For example, the first program comprises an ActiveX control loaded and run by a web browser application 220, such as in the memory space or context of the application 220. In another embodiment, the first program 222 comprises a set of executable instructions loaded into and run by the application 220 a-220 n, such as a browser. In one embodiment, the first program 222 comprises a designed and constructed program to install the acceleration program 120. In some embodiments, the first program 222 obtains, downloads, or receives the acceleration program 120 via the network from another computing device. In another embodiment, the first program 222 is an installer program or a plug and play manager for installing programs, such as network drivers, on the operating system of the client 205.

In other embodiments, the first program 222 may comprise a portion of the functionality, operations and logic of the acceleration program 120 to facilitate or perform any of the functionality, operations and logic of the acceleration program 120 described herein, such as any of the acceleration techniques. In some embodiments, the first program 222 is used to establish a connection, such as a transport layer connection, or a communication session with an appliance or a server, such as a Secure Socket Layer (SSL) communication session. In one embodiment, the first program 222 is used to establish or facilitate the establishment of a virtual private network connection and communication session.

The cache manager 232 of the acceleration program 120 or the client 205 as depicted in FIG. 2A may comprise software, hardware or any combination of software and hardware to provide cache access, control and management of any type and form of content, such as objects or dynamically generated objects served by the servers 206 a-206 n. The data, objects or content processed and stored by the cache manager 232 may comprise data in any format, such as a markup language, or communicated via any protocol. In some embodiments, the cache manager 232 duplicates original data stored elsewhere or data previously computed, generated or transmitted, in which the original data may require longer access time to fetch, compute or otherwise obtain relative to reading a cache memory element. Once the data is stored in the cache memory element, future use can be made by accessing the cached copy rather than refetching or recomputing the original data, thereby reducing the access time. In some embodiments, the cache memory element may comprise a data object in memory of the client 205. In other embodiments, the cache memory element may comprise memory having a faster access time than memory otherwise used by the client 205. In another embodiment, the cache memory element may comprise any type and form of storage element of the client 205, such as a portion of a hard disk. In yet another embodiment, the cache manager 232 may use any portion and combination of memory, storage, or the processing unit for caching data, objects, and other content.

Furthermore, the cache manager 232 of the present invention includes any logic, functions, rules, or operations to perform any embodiments of the techniques of the present invention described herein. For example, the cache manager 232 includes logic or functionality to invalidate objects based on the expiration of an invalidation time period or upon receipt of an invalidation command from a client 205 a-205 n or server 206 a-206 n. In some embodiments, the cache manager 232 may operate as a program, service, process or task executing in the kernel space 202, and in other embodiments, in the user space 203. In one embodiment, a first portion of the cache manager 232 executes in the user space 203 while a second portion executes in the kernel space 202. In some embodiments, the cache manager 232 can comprise any type of general purpose processor (GPP), or any other type of integrated circuit, such as a Field Programmable Gate Array (FPGA), Programmable Logic Device (PLD), or Application Specific Integrated Circuit (ASIC).

The encryption engine 234 of the acceleration program 120 or the client 205 comprises any logic, business rules, functions or operations for handling the processing of any security related protocol, such as SSL or TLS, or any function related thereto. For example, the encryption engine 234 encrypts and decrypts network packets, or any portion thereof, communicated by the client 205. The encryption engine 234 may also setup or establish SSL or TLS connections on behalf of the client 205 a-205 n. As such, the encryption engine 234 provides offloading and acceleration of SSL processing. In one embodiment, the encryption engine 234 uses a tunneling protocol to provide a virtual private network between a client 205 a-205 n and another computing device, such as a server

Still referring to FIG. 2A, the multi-protocol compression engine 238 of the acceleration program 120 or the client 205 comprises any logic, business rules, function or operations for compressing one or more protocols of a network packet, such as any of the protocols used by the network stack 210 of the client 205. For example, multi-protocol compression 238 may include compression and decompression utilities comprising GZip compression and decompression, differential compression and UnCompression, or any other proprietary or publicly-available utility for compressing and decompressing data to be transmitted over a network. In one embodiment, multi-protocol compression engine 238 compresses bi-directionally between the client 205 and another computing device, such as a servers, any TCP/IP based protocol, including Messaging Application Programming Interface (MAPI) (email), File Transfer Protocol (FTP), HyperText Transfer Protocol (HTTP), Common Internet File System (CIFS) protocol (file transfer), Independent Computing Architecture (ICA) protocol, Remote Desktop Protocol (RDP), Wireless Application Protocol (WAP), Mobile IP protocol, and Voice Over IP (VoIP) protocol. In other embodiments, multi-protocol compression engine 238 provides compression of Hypertext Markup Language (HTML) based protocols and in some embodiments, provides compression of any markup languages, such as the Extensible Markup Language (XML). As such, the multi-protocol compression engine 238 of the present invention accelerates performance for users accessing applications via desktop clients, e.g., Microsoft Outlook and non-Web thin clients, such as any client launched by enterprise applications like Oracle, SAP and Siebel, and even mobile clients, such as the Pocket PC.

The acceleration program 120 of the present invention also performs transport protocol layer acceleration techniques of buffering, pooling and multiplexing as will be described in further detail below. As such, the acceleration program 120 comprises any type and form of executable instructions having logic, rules, functions and operations to perform any of these techniques as described herein. The acceleration program 120 intercepts, controls, and manages at the transport layer of the network stack 210 any transport layer application programming interface (API) calls made by an applications 220 a-220 n via the network stack 210. The acceleration program 120 responds to any requests of the client 205 in a transparent manner such that the client 205 receives a response as expected from the transport protocol layer of the network stack 210. For example, in one embodiment, the acceleration program 120 intercepts in the network stack 210 of the client 205 a request to establish a transport layer connection with another computing device, such as a server, and may use a pool of one or more transport layer connections established by the acceleration program 120 to respond to the request. In another embodiment, the acceleration program 120 multiplexes a request from a first application 220 a via an established transport layer connection used by a second application 220 b.

In some embodiments, the acceleration program 120 comprises a mechanism for buffering or holding communications of the client 205 at the client 205 before transmitting on a network. For example, the rate of consumption by the client 205 of received communications from a network, such as from a server, may be less than the rate of production of communications transmitted by the client 205 on the network. As such, the client 205 may be sending more requests to a server 206 a-206 n at a rate greater than by which the client 205 can consume and process responses from such requests. The acceleration program 120 can intercept a communication, and determine if a rate of consumption and/or rate of production of the client 205 is below a predetermined threshold, such as a threshold configured by a user, the client 205 or another computing device. If the determined rate is below the desired threshold, the acceleration program 120 stores the intercepted communication to a memory element of the client until the performance of the client 205 increases the rate of consumption and/or production to a rate equal to or higher than the predetermined or desired threshold. At that point, the acceleration program 120 communicates the client's communications on the network. As such, the present invention provides a client-side mechanism to throttle communications of the client 205 based on performance of consumption and/or production of communications by the client 205.

The application 220 a-220 n depicted in FIG. 2A can be any type and/or form of application such as any type and/or form of web browser, web-based client, client-server application, a thin-client computing client, an ActiveX control, or a Java applet, or any other type and/or form of executable instructions capable of executing on client 205 or communicating via a network 204. The application 220 a-220 n can use any type of protocol and it can be, for example, an HTTP client, an FTP client, an Oscar client, or a Telnet client. In some embodiments, the application 220 a-220 n uses a remote display or presentation level protocol. In one embodiment, the application 220 a-220 n is an ICA client, developed by Citrix Systems, Inc. of Fort Lauderdale, Fla. In other embodiments, the application 220 a-220 n includes a Remote Desktop (RDP) client, developed by Microsoft Corporation of Redmond, Wash. In other embodiments, the application 220 a-220 n comprises any type of software related to VoIP communications, such as a soft IP telephone. In further embodiments, the application 220 a-220 n comprises any application related to real-time data communications, such as applications for streaming video and/or audio.

Referring now to FIG. 2B, a network environment 200 for practicing the acceleration program 120 of the present invention is depicted. In brief overview, the environment 200 comprises clients 205 a-20 n in communication with one or more servers 206 a-206 n via a network 204. The servers 206 a-206 n may provide or execute one or more applications 220 sa-220 n for use by the clients 205 a-205 n. The servers 206 a-206 n may also include the acceleration program 120 a-120 n to provide to a client 205 a-205 n for installation and execution. For example, in one embodiment, the server 206 a-206 n in response to receipt of a request from the client 205 sa-205 n to access the server, such as upon a request to establish a connection or communication session with the server 206 a-206 n, transmits the acceleration program 120 a-120 n to the client 205 a-205 n.

The network 204 can be any type and form of network. The network 204 can be a local-area network (LAN), such as a company Intranet, a metropolitan area network (MAN), or a wide area network (WAN), such as the Internet or the World Wide Web. The topology of the network 204 may be a bus, star, or ring network topology. The network 204 and network topology may be of any such network or network topology capable of supporting the operations of the present invention described herein. The clients 205 a-205 n and servers 206 a-206 n can connect to one or more networks 204 through a variety of connections including standard telephone lines, LAN or WAN links (e.g., T1, T3, 56 kb, X.25, SNA, DECNET), broadband connections (ISDN, Frame Relay, ATM, Gigabit Ethernet, Ethernet-over-SONET), and wireless connections or any combination thereof. Connections can be established using a variety of communication protocols (e.g., TCP/IP, IPX, SPX, NetBIOS, Ethernet, ARCNET, Fiber Distributed Data Interface (FDDI), RS232, IEEE 802.11, IEEE 802.11a, IEEE 802.11b, IEEE 802.11g, and direct asynchronous connections).

In some embodiments, the server 206 a-206 n may run an application 220 a-220 n, which for example, may be an application server providing email services such as Microsoft Exchange manufactured by the Microsoft Corporation of Redmond, Wash., a web or Internet server, or a desktop sharing server, or a collaboration server. In some embodiments, any of the application 220 a-220 n may comprise any type of hosted service, such as GoToMeeting.com provided by Citrix Systems, Inc. of Ft. Lauderdale, Fla., WebEx.com provided by WebEx, Inc. of Santa Clara, Calif., or LiveMeeting.com provided by Microsoft Corporation of Redmond, Wash.

In another embodiment, any of the clients 205 a-205 n may communicate via the network 204 to a server farm 206 a-206 n or server network, which is a logical group of one or more servers that are administered as a single entity. The server farm 206 a-206 n may be running one or more applications 220 a-220 n, such as an application 33 f providing a thin-client computing or remote display presentation application. In one embodiment, the server 206 a or server farm 206 a-206 n executes as an application 220 a-220 n, any portion of the Citrix Access Suite™ by Citrix Systems, Inc., such as the MetaFrame or Citrix Presentation Server™, and/or any of the Microsoft Windows Terminal Services manufactured by the Microsoft Corporation. In some embodiments, any one of the servers 206 a-206 n comprises a gateway, firewall, router, switch or bridge for connecting the clients 205 a-205 n to any server 206 a-205 n. In one embodiment, a server 206 a-206 n comprises a proxy. In another embodiment, the server 206 a-206 n comprises a load-balancer. In some embodiments, the clients 205 a-205 n may communicate to the server 206 a-206 n via an appliance.

FIG. 2C depicts another embodiment of a network environment 201 in which an appliance 250 is used for connections and communications between the clients 205 a-205 n and a server 220 a-220 n. In brief overview, the appliance 250 comprises a computing or networking device for providing communications between the clients 205 a-205 n on a network 204 and the servers 206 a-206 n on a network 204′. In some embodiments, the clients 205 a-205 n and servers 206 a-206 n may be on the same network 204 or on different networks. In other embodiments, the clients 205 a-205 n may be on a public network, such as the Internet, and the servers 206 a-206 n may be on a private network, such as a corporate or enterprise network.

The appliance 250 comprises any type of computing or networking device. In some embodiments, the appliance 250 comprises a gateway, a proxy, a SSL VPN device, a bridge, a router or a switch. In one embodiment, the appliance 250 provides a virtual private connection from a client 205 a-205 n on network 204 to a server 206 a-206 n on network 204′. In some embodiments, the appliance 250 may establish a first transport layer connection with a client 205 a-205 n on network 204 and a second transport layer connection with a server 206 a-206 n on network 204′. In some embodiments, the appliance 250 provides for the acceleration of communications and remotely-accessed applications, such as applications 220 a-220 n between the clients 205 a-205 n and the servers 206 a-206 n. As with the client-side acceleration program 120, the logic, functions, and/or operations of the executable instructions of the appliance 250 may perform one or more of the following acceleration techniques of the present invention: 1) multi-protocol compression, 2) transport control protocol pooling, 3) transport control protocol multiplexing, 4) transport control protocol buffering, and 5) caching via a cache manager. Additionally, the appliance 250 may perform encryption and/or decryption of any communications received and/or transmitted by the client 205. In some embodiments, the appliance 250 also performs tunneling between to the server 206 a-206 n, such for a client 205 a-205 n.

FIG. 2D illustrates an example architecture of an appliance 250. In brief overview, the appliance 250 comprises a hardware layer 206 and a software layer divided into a user space 203 and a kernel space 202. Hardware layer 206 provides the hardware elements upon which programs and services within kernel space 202 and user space 203 are executed. Hardware layer 206 also provides the structures and elements which allow programs and services within kernel space 202 and user space 203 to communicate data both internally and externally with respect to appliance 250. The software layer comprises programs, services, processes, tasks, threads and other executable instructions to provide the logic, functions, and operations of the appliance 250.

The appliance 250 comprises an application acceleration determination mechanism 275 and a client-side acceleration program 120. The application acceleration determination mechanism 275 comprises software, hardware, or any combination of hardware and software. In some embodiments, the application acceleration determination mechanism 275 comprises any type and form of executable instructions, such as a program, services, process, task or thread having logic, function, rules, or operations for determining whether an application 220 a-220 n executing on a client 205 a-205 n and/or server 206 a-206 n can be accelerated or whether access or communications between a client 205 a-205 n and a server 206 a-206 n can be accelerated. In one embodiment, a database is used by the application acceleration determination mechanism 275 to determine whether an application 220 a-220 n can be accelerated. For example, the database may associate an application 220 a-220 n with one or more acceleration techniques capable of accelerating the application 220 a-220 n, and may be further based on user, type, form, location, processing capability and other characteristics of the client 205 a-205 n and/or server 206 a-206 n. In some embodiments, the application acceleration determination mechanism 275 uses a look-up table, file, data structure or object in memory comprising information identifying if an application 220 a-220 n by name, type or category can be accelerated by an acceleration technique. In other embodiments, the appliance 250 and/or application acceleration determination mechanism 275 includes a configuration mechanism, such as a user interface, graphical, command line or otherwise, to receive user input to identify, specify or configure whether an application 220 a-220 n or access to a server 206 a-206 n can be accelerated.

In some embodiments, the application acceleration determination mechanism 275 requests from the server 206 a-206 n information identifying whether an application 220 a-220 n may be accelerated and in further embodiments, by what acceleration technique(s) and for what type and form of clients 205 a-205 n. In yet another embodiment, the application acceleration determination mechanism 275 comprises a database of historical information regarding the performance of an application 220 a-220 n between a client 205 a-205 n and a server 206 a-206 n, with and without one or more client-side acceleration techniques, to provide a database of comparative and heuristic information about where the application 220 a-220 n is accelerated, or capable of being accelerated, using any client-side acceleration techniques of the present invention. For example, the appliance 250 may capture network related performance information related to the performance of the application 220 a-220 n from the client 205 a-205 n. As such, the determination of whether an application 220 a-220 n is capable of being accelerated may be adapted to, based on or influenced by changing operational and performance characteristics of the network 204.

In one aspect, an application 220 a-220 n may either not be capable of being accelerated or may be capable of being accelerated but the acceleration would not be effective, or would otherwise be minimal. In one embodiment, the type and form of application 220 a-220 n may not use a protocol or may not communicate in a manner suitable for use with an acceleration technique. In another embodiment, the protocol or manner in which the application 220 a-220 n communicates may allow for performing an acceleration technique but based on any of the operational or performance characteristics of the client 205 a-205 n, appliance 250 or server 206 a-206 n, the acceleration technique would not be effective or otherwise would provide minimal acceleration. As such, the application acceleration determination mechanism 275 may determine the application 220 a-220 n is not desired to be accelerated based on whether the application 220 a-220 n is able to be accelerated or whether the acceleration would meet a desired pre-determined threshold of performance improvement.

In another aspect, the appliance 250 stores a client-side acceleration program 120 in a storage or memory element of the appliance 250, such as storage or memory provided by the hardware layer 206 of the appliance. In one embodiment, the appliance 250 dynamically determines via the application acceleration determination mechanism 275 an application 220 a-220 n to be used or being used by the client 205 a-205 n can be accelerated by the acceleration program 120 executing on the client 205 a-205 n and transmits or otherwise communicates the acceleration program 120 from storage or memory of the appliance 250 to the client 205 a-205 n. In another embodiment, the appliance 250 determines communications between the client 205 a-205 n and a server 206 a-206 n can be accelerated by the acceleration program 120 executing on the client 205 and communicates the acceleration program 120 to the client 205. In some embodiments, the appliance 250 receives, downloads or obtains the acceleration program 120 from another computing device 100, such as a server 206 a-206 n.

As shown in FIG. 2D, the hardware layer 206 includes a processing unit 262 for executing software programs and services, a memory 264 for storing software and data, network ports 266 for transmitting and receiving data over a network, and an encryption processor 260 for performing functions related to Secure Sockets Layer processing of data transmitted and received over the network. In some embodiments, the central processing unit 262 may perform the functions of the encryption processor 260 in a single processor. Additionally, the hardware layer 206 may comprise multiple processors for each of the processing unit 262 and the encryption processor 260. Although the hardware layer 206 of appliance 250 is generally illustrated with an encryption processor 260, processor 260 may be a processor for performing functions related to any encryption protocol, such as the Secure Socket Layer (SSL) or Transport Layer Security (TLS) protocol. In some embodiments, the processor 260 may be a general purpose processor (GPP), and in further embodiments, may be have executable instructions for performing processing of any security related protocol.

Although the hardware layer 206 of appliance 250 is illustrated with certain elements in FIG. 2D, the hardware portions or components of appliance 250 may comprise any type and form of elements, hardware or software, of a computing device, such as the computing device 100 illustrated and discussed in conjunction with FIGS. 1A and 1B. In some embodiments, the appliance 250 may comprise a cache, a server, gateway, router, switch, bridge or other type and form of computing or network device, and have any hardware and/or software elements associated therewith.

The operating system of appliance 250 allocates, manages, or otherwise segregates the available system memory into kernel space 202 and user space 204. In example software architecture 200, the operating system may be any type and/or form of UNIX operating system although the invention is not so limited. As such, the appliance 250 can be running any operating system such as any of the versions of the Microsoft® Windows operating systems, the different releases of the Unix and Linux operating systems, any version of the Mac OS® for Macintosh computers, any embedded operating system, any network operating system, any real-time operating system, any open source operating system, any proprietary operating system, any operating systems for mobile computing devices or network devices, or any other operating system capable of running on the appliance 250 and performing the operations described herein.

The kernel space 202 is reserved for running the kernel 230, including any device drivers, kernel extensions or other kernel related software. As known to those skilled in the art, the kernel 230 is the core of the operating system, and provides access, control, and management of resources and hardware-related elements of the application 104. In accordance with an embodiment of the present invention, the kernel space 202 also includes a number of network services or processes working in conjunction with a cache manager 232. sometimes also referred to as the integrated cache, the benefits of which are described in detail further herein. Additionally, the embodiment of the kernel 230 will depend on the embodiment of the operating system installed, configured, or otherwise used by the appliance 250.

In one embodiment, the appliance 250 comprises one network stack 267, such as a TCP/IP based stack, for communicating with the client 102 a-102 b and/or the server 206 a-206 n. In one embodiment, the network stack 267 is used to communicate with a first network, such as network 204, and a second network 204′. In some embodiments, the appliance 250 terminates a first transport layer connection, such as a TCP connection of a client 205 a-205 n, and establishes a second transport layer connection to a server 206 a-206 n for use by the client 205 a-205 n, e.g., the second transport layer connection is terminated at the appliance 250 and the server 206 a-206 n. The first and second transport layer connections may be established via a single network stack 267. In other embodiments, the appliance 250 may comprise multiple network stacks, for example 267 and 267′, and the first transport layer connection may be established or terminated at one network stack 267, and the second transport layer connection on the second network stack 267′. For example, one network stack may be for receiving and transmitting network packet on a first network, and another network stack for receiving and transmitting network packets on a second network. In one embodiment, the network stack 267 comprises a buffer 243 for queuing one or more network packets for transmission by the appliance 250.

As shown in FIG. 2D the kernel space 202 includes the cache manager 232, a high-speed layer 2-7 integrated packet engine 240, an encryption engine 234, a policy engine 236 and multi-protocol compression logic 238. Running these components or processes 232, 240, 234, 236 and 238 in kernel space 202 or kernel mode instead of the user space 203 improves the performance of each of these components, alone and in combination. Kernel operation means that these components or processes 232, 240, 234, 236 and 238 run in the core address space of the operating system of the appliance 250. For example, running the encryption engine 234 in kernel mode improves encryption performance by moving encryption and decryption operations to the kernel, thereby reducing the number of transitions between the memory space or a kernel thread in kernel mode and the memory space or a thread in user mode. For example, data obtained in kernel mode may not need to be passed or copied to a process or thread running in user mode, such as from a kernel level data structure to a user level data structure. In another aspect, the number of context switches between kernel mode and user mode are also reduced. Additionally, synchronization of and communications between any of the components or processes 232, 240, 235, 236 and 238 can be performed more efficiently in the kernel space 202.

In some embodiments, any portion of the components 232, 240, 234, 236 and 238 may run or operate in the kernel space 202, while other portions of these components 232, 240, 234, 236 and 238 may run or operate in user space 203. In one embodiment, the present invention uses a kernel-level data structure providing access to any portion of one or more network packets, for example, a network packet comprising a request from a client 205 a-205 n or a response from a server 206 a-206 n. In some embodiments, the kernel-level data structure may be obtained by the packet engine 240 via a transport layer driver interface or filter to the network stack 267. The kernel-level data structure may comprise any interface and/or data accessible via the kernel space 202 related to the network stack 267, network traffic or packets received or transmitted by the network stack 267. In other embodiments, the kernel-level data structure may be used by any of the components or processes 232, 240, 234, 236 and 238 to perform the desired operation of the component or process. In one embodiment, a component 232, 240, 234, 236 and 238 is running in kernel mode 202 when using the kernel-level data structure, while in another embodiment, the component 232, 240, 234, 236 and 238 is running in user mode when using the kernel-level data structure. In some embodiments, the kernel-level data structure may be copied or passed to a second kernel-level data structure, or any desired user-level data structure.

As with the client-side acceleration program 120, the appliance may also perform caching for any communications between the client 205 a-205 n and the servers 206 a-206 n. In some embodiments, the cache memory 232 element may comprise a data object in memory 264 of appliance 250. In other embodiments, the cache memory element may comprise memory having a faster access time than memory 264. In another embodiment, the cache memory element may comprise any type and form of storage element of the appliance 250, such as a portion of a hard disk. In some embodiments, the processing unit 262 may provide cache memory for use by the cache manager 232 of the present invention. In yet further embodiments, the cache manager 232 may use any portion and combination of memory, storage, or the processing unit of the appliance 250 for caching data, objects, and other content. Furthermore, the cache manager 232 of the present invention includes any logic, functions, rules, or operations to perform any embodiments of the techniques of the present invention described herein. For example, the cache manager 232 includes logic or functionality to invalidate objects based on the expiration of an invalidation time period or upon receipt of an invalidation command from a client 205 a-205 n or server 206 a-206 n. In some embodiments, the cache manager 232 may operate as a program, service, process or task executing in the kernel space 202, and in other embodiments, in the user space 203. In one embodiment, a first portion of the cache manager 232 executes in the user space 203 while a second portion executes in the kernel space 202. In some embodiments, the cache manager 232 can comprise any type of general purpose processor (GPP), or any other type of integrated circuit, such as a Field Programmable Gate Array (FPGA), Programmable Logic Device (PLD), or Application Specific Integrated Circuit (ASIC).

The policy engine 236 as depicted in FIG. 2D may include, for example, an intelligent statistical engine or other programmable application(s). In one embodiment, the policy engine 236 provides a configuration mechanism to allow a user to identify, specify, define or configure a caching policy. Policy engine 236, in some embodiments, also has access to memory to support data structures such as lookup tables or hash tables to enable user-selected caching policy decisions. In other embodiments, the policy engine 236 may comprise any logic, rules, functions or operations to determine and provide access, control and management of objects, data or content being cached by the appliance 250 in addition to access, control and management of security, network traffic, network access, compression or any other function or operation performed by the appliance 250. In some embodiments, the acceleration program 120 receives, downloads or obtains policy information from the policy engine 236 of the appliance 250. In other embodiments, the acceleration program 120 executes and operates a policy engine 236, either independently of or in conjunction with the policy engine 236 of the appliance 250.

In a similar manner as the client-side acceleration program 120 and still referring to FIG. 2D, the appliance includes an encryption engine 234, which comprises any logic, business rules, functions or operations for handling the processing of any security related protocol, such as SSL or TLS, or any function related thereto. For example, the encryption engine 234 encrypts and decrypts network packets, or any portion thereof, communicated via the appliance 250. The encryption engine 234 may also setup or establish SSL or TLS connections on behalf of the client 205 a-205 n, server 206 a-206 n, or appliance 250. As such, the encryption engine 234 provides offloading and acceleration of SSL processing. In one embodiment, the encryption engine 234 uses a tunneling protocol to provide a virtual private network between a client 205 a-205 n and a server 206 a-206 n. In some embodiments, the encryption engine 234 is in communication with the encryption processor 260. In other embodiments, the encryption engine 234 comprises executable instructions running on the Encryption processor 260.

Also, as with the client-side acceleration program 120, the appliance 250 may include a multi-protocol compression engine 238′, which comprises any logic, business rules, function or operations for compressing one or more protocols of a network packet, such as any of the protocols used by the network stack 267 of the appliance 250. In one embodiment, multi-protocol compression engine 238 compresses bi-directionally between clients 102 a-102 n and servers 206 a-206 n any TCP/IP based protocol, including Messaging Application Programming Interface (MAPI) (email), File Transfer Protocol (FTP), HyperText Transfer Protocol (HTTP), Common Internet File System (CIFS) protocol (file transfer), Independent Computing Architecture (ICA) protocol, Remote Desktop Protocol (RDP), Wireless Application Protocol (WAP), Mobile IP protocol, and Voice Over IP (VoIP) protocol. In other embodiments, multi-protocol compression engine 238 provides compression of Hypertext Markup Language (HTML) based protocols and in some embodiments, provides compression of any markup languages, such as the Extensible Markup Language (XML). In one embodiment, the multi-protocol compression engine 238 provides compression of any high-performance protocol, such as any protocol designed for appliance 250 to appliance 250 communications. In another embodiment, the multi-protocol compression engine 238 compresses any payload of or any communication using a modified transport control protocol, such as Transaction TCP (T/TCP), TCP with selection acknowledgements (TCP-SACK), TCP with large windows (TCP-LW), a congestion prediction protocol such as the TCP-Vegas protocol, and a TCP spoofing protocol.

As such, the multi-protocol compression engine 238 of the present invention accelerates performance for users accessing applications via desktop clients, e.g., Microsoft Outlook and non-Web thin clients, such as any client launched by popular enterprise applications like Oracle, SAP and Siebel, and even mobile clients, such as the Pocket PC. In some embodiments, the multi-protocol compression engine 238 by executing in the kernel mode 202 and integrating with packet processing engine 240 accessing the network stack 267 is able to compress any of the protocols carried by the TCP/IP protocol, such as any application layer protocol.

High speed layer 2-7 integrated packet engine 240 depicted in FIG. 2D, also generally referred to as a packet processing engine or packet engine, is responsible for managing the kernel-level processing of packets received and transmitted by appliance 250 via network ports 266. The high speed layer 2-7 integrated packet engine 240 may comprise a buffer for queuing one or more network packets during processing, such as for receipt of a network packet or transmission of a network packer. Additionally, the high speed layer 2-7 integrated packet engine 240 is in communication with one or more network stacks 267 to send and receive network packets via network ports 266. The high speed layer 2-7 integrated packet engine 240 works in conjunction with encryption engine 234, cache manager 232, policy engine 236 and multi-protocol compression logic 238. In particular, encryption engine 234 is configured to perform SSL processing of packets, policy engine 236 is configured to perform functions related to traffic management such as request-level content switching and request-level cache redirection, and multi-protocol compression logic 238 is configured to perform functions related to compression and decompression of data.

The high speed layer 2-7 integrated packet engine 240 includes a packet processing timer 242. In one embodiment, the packet processing timer 242 provides one or more time intervals to trigger the processing of incoming, i.e., received, or outgoing, i.e., transmitted, network packets. In some embodiments, the high speed layer 2-7 integrated packet engine 240 processes network packets responsive to the timer 242. The packet processing timer 242 provides any type and form of signal to the packet engine 240 to notify, trigger, or communicate a time related event, interval or occurrence. In many embodiments, the packet processing timer 242 operates in the order of milliseconds. For example, in some embodiments, the packet processing timer 242 provides time intervals or otherwise causes a network packet to be processed by the high speed layer 2-7 integrated packet engine 240 at a 10 ms time interval, while in other embodiments, at a 5 ms time interval, and still yet in further embodiments, at a 1 and/or 2 ms time interval. The high speed layer 2-7 integrated packet engine 240 may be interfaced, integrated or in communication with the encryption engine 234, cache manager 232, policy engine 236 and multi-protocol compression engine 238 during operation. As such, any of the logic, functions, or operations of the encryption engine 234, cache manager 232, policy engine 236 and multi-protocol compression logic 238 may be performed responsive to the packet processing timer 242 and/or the packet engine 240. Therefore, any of the logic, functions, or operations of the encryption engine 234, cache manager 232, policy engine 236 and multi-protocol compression logic 238 may be performed at the granularity of time intervals provided via the packet processing timer 242, for example, at a time interval of less than or equal to 10 ms. For example, in one embodiment, the cache manager 232 may perform invalidation of any cached objects responsive to the high speed layer 2-7 integrated packet engine 240 and/or the packet processing timer 242. In another embodiment, the expiry or invalidation time of a cached object can be set to the same order of granularity as the time interval of the packet processing timer 242, such as at every 10 ms.

In other embodiments, the packet engine 240, or portion thereof, may be operated on the client 205 a-205 n, such as part of the acceleration program 120. As such, the acceleration program 120 may operate on the client 205 a-205 n in accordance with the packet processing timer 242 as described above. In one aspect, the acceleration program 120 may perform integrated acceleration techniques in one point in execution and responsive to the granular time intervals provided by the pack processing timer 242.

In contrast to kernel space 202, user space 203 is the memory area or portion of the operating system used by user mode applications or programs otherwise running in user mode. A user mode application may not access kernel space 202 directly and uses service calls in order to access kernel services. As shown in FIG. 2D, user space 203 of appliance 250 includes a graphical user interface (GUI) 210, a command line interface (CLI) 212, shell services 214, health monitoring program 216, and daemon services 218. GUI 210 and CLI 212 provide a means by which a system administrator or other user can interact with and control the operation of appliance 250, such as via the operating system of the appliance 250 and either is user space 203 or kernel space 202. The GUI 210 may be any type and form of graphical user interface and may be presented via text, graphical or otherwise, by any type of program or application, such as a browser. The CLI 212 may be any type and form of command line or text-based interface, such as a command line provided by the operating system. For example, the CLI 212 may comprise a shell, which is a tool to enable users to interact with the operating system. In some embodiments, the CLI 212 may be provided via a bash, csh, tcsh, or ksh type shell. The shell services 214 comprises the programs, services, tasks, processes or executable instructions to support interaction with the appliance 250 or operating system by a user via the GUI 210 and/or CLI 212.

Still referring to FIG. 2D, health monitoring program 216 is used to monitor, check, report and ensure that network systems are functioning properly and that users are receiving requested content over a network. Health monitoring program 216 comprises one or more programs, services, tasks, processes or executable instructions to provide logic, rules, functions or operations for monitoring any activity of the appliance 250. In some embodiments, the health monitoring program 216 intercepts and inspects any network traffic passed via the appliance 250. In other embodiments, the health monitoring program 216 interfaces by any suitable means and/or mechanisms with one or more of the following: the encryption engine 234, cache manager 232, policy engine 236, multi-protocol compression logic 238, packet engine 240, daemon services 218, and shell services 214. As such, the health monitoring program 216 may call any application programming interface (API) to determine a state, status, or health of any portion of the appliance 250. For example, the health monitoring program 216 may ping or send a status inquiry on a periodic basis to check if a program, process, service or task is active and currently running. In another example, the health monitoring program 216 may check any status, error or history logs provided by any program, process, service or task to determine any condition, status or error with any portion of the appliance 250.

In a similar fashion, and in other embodiments, the health monitoring program 216 may check and determine the status, error or history of any client-side acceleration program 120 on any client 205 a-205 n in communication with the appliance 250 or to which the appliance 250 transmitted the acceleration program 120. In some embodiments, the health monitoring program 216, or a portion thereof, executes on the client 205 a-205 n.

Daemon services 218 are programs that run continuously or in the background and handle periodic service requests received by appliance 250. In some embodiments, a daemon service may forward the requests to other programs or processes, such as another daemon service 218 as appropriate. A daemon service 218 may run unattended to perform continuous or periodic system wide functions, such as network control, or to perform any desired task. In some embodiments, one or more daemon services 218 run in the user space 203, while in other embodiments, one or more daemon services 218 run in the kernel space 202.

Referring now to FIG. 3A, an embodiment of a method 300 of the present invention for dynamically providing by the appliance 250 an acceleration program 120, and automatically installing and executing the acceleration program 120 by the client 205 is depicted. In brief overview, at step 310, the appliance 250 intercepts a request from a client 205 to establish a communication session with the server. At step 315, the appliance 250 transmits the acceleration program 120 to the client 205 for the client 205 to automatically install and execute. At step 320, upon receipt of the acceleration program 120, the client 205 automatically executes or performs a silent installation of the acceleration program 120. At step 325, upon completion of installation of the acceleration program 120, the client 205 automatically executes the acceleration program 120 in the network stack 210 to intercept communications between the client 205 and the server 206. At step 330, the acceleration program 120 performs any of the plurality of acceleration techniques and may encrypt and/or decrypt communications.

In further detail, at step 310, the appliance 250 may intercept or otherwise receive by any suitable means and mechanisms a request from the client 205 to establish a communication session with the server 206. In one embodiment, the packet engine 240 of the appliance 250 intercepts communications from the client 205. In other embodiments, the appliance 250 establishes a first transport layer connection with the client 205, for example, with the acceleration program 120, and a second transport layer connection with the server 205 on behalf of the client 205. As such, the appliance 250 may receive, intercept or otherwise obtain any of the client's communications transmitted to the server 206. In some embodiments, the appliance 250 intercepts a request for the client 205 to establish a transport layer connection with the server 206. In other embodiments, the appliance 205 intercepts a request to establish a communication session via any protocol layer above the transport layer connection, such as an application layer protocol of HTTP. This embodiment of the method of the present invention may be practiced with a request to establish a communication session at any protocol layer of the network stack 210 of the client 205.

At step 315, the appliance 250 transmits the acceleration program 120 to the client 205. The appliance 250 may transmit the acceleration program 120 at any point before, during, or after establishing the communication session requested by the client 205. In one embodiment, the appliance 250 transmits the acceleration program 120 to the client 205 in response to intercepting the client request. In another embodiment, the appliance 250 forwards the request to the server 206 and transmits the acceleration program 120 to the client 205. In some embodiments, the appliance 250 establishes the communication session with the server 206, and upon establishment of the communication session, the appliance 250 transmits the acceleration program 120. In yet another embodiment, the appliance 250 performs authentication and/or authorization of the client 205, or the user of the client 205, and if the authenticated user or client 205 is so authorized, the appliance 250 transmits the acceleration program 120 to the client 205. In one embodiment, the appliance 250 forwards the client's request to the server 206 for authentication and/or authorization, and if the server 206 authenticates and/or authorizes the client's request, the appliance 250 transmits the acceleration program 120 to the client 205.

In some embodiments, the appliance 250 transmits the acceleration program 120 from storage or memory of the appliance 250. In other embodiments, the appliance 250 requests the acceleration program 120 from the server 206 and forwards the received acceleration program 120 to the client 205. In another embodiment, the server 206 transmits the acceleration program 120 to the client 205. In one embodiment, the appliance 250 transmits a Uniform Resource Locator (URL) to the client 205 for the client 205 to obtain, download or receive the acceleration program. In some embodiments, the URL identifies a location of the acceleration program 120 in storage or memory of the appliance 250, while in other embodiments, the URL identifies the acceleration program 120 on a server 206, such as a web server providing the acceleration program 120 for download. In one embodiment, the acceleration program 120 is stored on the client 205, and the appliance 250 transmits a key, such as an encryption or license key, to the client 205 for the client 205 to install and make use of the acceleration program 120 stored on the client 205. In some embodiments, the appliance 250 transmits to the client 205 any files, configuration, data or other information to be used to install and execute the acceleration program 120 on the client 205.

In one embodiment, the acceleration program 120 is designed and constructed to be automatically installed and executed by the client 205. The acceleration program 120 may include any files, entries, configuration, data, or instructions to cause the acceleration program 120 to be registered or recognized by the operating system of the client 205 in accordance with the type and form of operating system. In one embodiment, another computing device, such as a server or an appliance, transmits the acceleration program to the client 205 and the client 205 automatically installs and executes the acceleration program 120. In one embodiment, the acceleration program 120 is designed and constructed to be a plug-and-play (PnP) device to be added to a running computing device 100. In some embodiments, the acceleration program 120 is a self-installed executable, such as an executable including an installer program and the acceleration program 120. In other embodiments, the acceleration program 120 may include a plurality of files, for example an installation package or installation download, such as files necessary to register and install the acceleration program 120 in the operating system of the client 205. For example, the acceleration program 120 may comprise an .inf file and a .sys file. An .inf file provides Windows Setup in Microsoft Windows family of operating systems with the information required to set up a device, such as a list of valid logical configurations for the device and the names of driver files associated with the device. In some embodiments, the .inf file may comprise an autorun .inf file, which is a configuration file that tells or informs the operating system which executable to start, and any configuration information related to starting the executable. In one embodiment, the .sys file is the driver file comprising the acceleration program 120, or a portion thereof.

At step 320, the client 205 automatically installs the acceleration program 120. The acceleration program 120 may be installed in any suitable manner in accordance with the operating system of the client 205. In one embodiment, the client 205 installs the acceleration program 120 upon receipt of the acceleration program 120. In some embodiments, the client 205 automatically performs or executes a silent installation of the acceleration program 120. In one embodiment, the silent installation is performed transparently to a user or application of the client 205. In other embodiments, the silent installation of the acceleration program 120 does not require a reboot or restart of the client 205. In another embodiment, the silent installation does not require interaction by the user to start and/or complete the installation. In other embodiments, the silent installation of the acceleration program 120 occurs while the client 205 is running and transparently to a network layer, session layer, and/or application layer of the network stack 210. In some embodiments, the acceleration program 120 is a self-installed executable that is executed by the client 205. In other embodiments, the client 205 uses a plug and play manager to install the acceleration program 120. In one embodiment, the client 205 comprises an installation manager which receives and installs the acceleration program 120. In another embodiment, the acceleration program 120 transmitted by the appliance 250 also includes an installation program that installs the acceleration program 120.

In another embodiment, the acceleration program 120 is automatically installed via a silent installation. In one embodiment, a silent installation comprises an installation unattended by a user. In another embodiment, a silent installation comprises an installation not requiring or having interaction by the user to start and/or complete the installation. In some embodiments, the installation is silent in that the installation process does not display information regarding a status or progress of the installation. In one embodiment, the installation is silent in that it is transparent to the user. In other embodiments, the installation is silent because the installation of the acceleration program 120 does not require a reboot or restart of the client 205. In another embodiment, the installation is silent in that the installation occurs seamlessly during operation of the client 205 without interruption or disruption to the client's operation. As such, the acceleration program 120 can be installed in a manner that is transparent to the user or an application of the client 205 by not requiring a reboot and not displaying any information to the user related to the installation.

In order to prevent or avoid a reboot or restart of the client 205, in some embodiments, the client 205, such as the operating system of the client 205, has a plug and play manager to install and configure drivers, such as a network driver in one embodiment of the acceleration program 120, for Plug and Play devices while the operating system is running. In one embodiment, the plug and play manager is not instructed to reboot or restart the client 205 based on the configuration of the installation package of the acceleration program 120. In another embodiment, the .inf file does not comprise an instruction to reboot or restart the computer. In one embodiment, the acceleration program 120 can be implemented as a side-by-side component instead of replacing shared, in-use, dynamic-link libraries (DLLs). In other specific embodiments, for a network driver of the acceleration program 120, the acceleration program 120 uses the INetCfgPnpReconfigCallback network driver API, so that a user will not be required to reboot the operating system to cause configuration changes to take effect in the driver. Additionally, the acceleration program 120 may have a notify object that calls the SendPnpReconfig API within its implementation of the ApplyPnpChanges method of the INetCfgComponentControl to send configuration information to the driver of the network component that owns the object. The SendPnpReconfig API provides the notify object with a mechanism to send data to the driver and in some embodiments, is used to avoid requiring a user to reboot the operating system before configuration changes take effect.

At step 325, upon completion of installation of the acceleration program 120 automatically, silently, transparently, or otherwise, the acceleration program 120 is automatically executed on the client 205. In some embodiments, the installation program that installs the acceleration program 120 starts or executes the acceleration program 120. In some embodiments, the installer program for the acceleration program 120 makes a system call to load or execute the acceleration program 120 in memory of the client 205. In one embodiment, the installation of the acceleration program 120 comprises an instruction, command or directive to start the acceleration program 120. In one embodiment, the acceleration program 120 includes an automatic run configuration, such as an autorun.inf file, that notifies the client 205 to automatically run the acceleration program 120. In other embodiments, a plug and play manager or the operating system of the client 205 automatically executes the acceleration program 120 upon installation. In one embodiment, the acceleration program 120 comprises a service, process, thread or task that is started by the client 205. In some embodiments, the acceleration program 120 is a service of the operating system that is configured to automatically start. In one embodiment, the acceleration program 120 comprises a network driver loaded in the memory of the network stack of the operating system of the client

In another embodiment, the acceleration program 120 comprises a network driver that is loaded into memory of the client 205. In some embodiments, the acceleration program 120 is loaded into memory allocated to the network stack 210. In some cases, the acceleration program 120 is loaded and executed in a memory area or space that allows the acceleration program 120 to access a protocol layer of the network stack, such as the transport layer. In other cases, the acceleration program is loaded and executed in a memory that allows the acceleration program 120 to access a kernel-level data structure 225. In other embodiments, the acceleration program 120 is loaded into memory of an application 220 a-220 n. In another embodiment, the acceleration program 120 executes independently in its own memory space or context. In one embodiment, the acceleration program 120 runs in the memory space or context of an application 220 a-220 n. In some embodiments, the acceleration program 120 is loaded into user-mode memory or memory allocated to the user-mode 203, while in other embodiments, the acceleration program 120 is loaded into kernel-mode memory or memory allocated to the kernel-mode 202

In some embodiments, the acceleration program 120 is loaded into memory and/or executed on the client 205 transparently to a user of the client, an application of the client 205, the appliance 250 or the server 206. In other embodiments, the acceleration program 120 executes to interface with the transport layer of the network stack 210, and executes transparently to any protocol layer above the transport layer, such as a session or application layer, and any protocol layer below the transport layer, such as the network layer. In one embodiment, the acceleration program 120 executes transparently to any transport layer connection of the client 205, or the transport layer itself.

At step 330, the loaded, started or otherwise executing acceleration program 120 performs any of the plurality of acceleration techniques of the acceleration program 120, such as any techniques provided by 1) multi-protocol compression 238, 2) transport control protocol pooling 224, 3) transport control protocol multiplexing 226, 4) transport control protocol buffering 228, and 5) caching via a cache manager 232. The acceleration program 120 may also perform any encryption and/or decryption of communications between the client 205 and the server 206. In one embodiment, the acceleration program 120 performs multi-protocol compression. In another embodiment, the acceleration program 120 performs transport control protocol pooling, and in a further embodiment, the acceleration program 120 performs multiplexing via the pooled transport layer connection. In one embodiment, the acceleration program 120 performs transport control protocol buffering. In some embodiments, the acceleration program 120 performs caching. In other embodiments, the acceleration program 120 performs caching and compression. In one embodiment, the acceleration program 120 performs caching with transport layer pooling and multiplexing. In another embodiment, the acceleration program 120 performs multi-protocol compression with transport layer pooling and multiplexing. In another embodiment, the acceleration program 120 performs caching and/or compression with TCP buffering, and in a further embodiment, with TCP pooling and multiplexing.

As such, the client-side acceleration program 120 of the present invention is dynamically provided by the appliance 250 and automatically installed and executed on the client 205 in a silent manner or transparent to the user or application of the client 205 to perform one or more client-side acceleration techniques to communications between the client 205 and a server 206. The acceleration program 120 may perform these acceleration techniques transparently to any protocol layer of the network stack and transparently to a user of the client, application of the client, appliance, or server.

In another aspect, the present invention is related to the appliance 250 determining if an application requested to be accessed by the client 205 can be accelerated, and providing the acceleration program 120 to the client 205 if the application can be accelerated. Referring now to FIG. 3B, another embodiment of a method of the present invention is depicted. The present invention may be practiced upon requests to establish a connection or communication session as well as requests to access an application on a server. In brief overview of method 350, at step 355, the appliance 250 intercepts a request from a client 205 requesting access to an application 220 a-220 n on a server 206. At step 260, the appliance 250 determines if the application 220 is capable of being accelerated. At step 365, if the application 220 cannot be accelerated, then the application forwards the request to the server at step 267. At step 365, if the application 220 can be accelerated, then the appliance 250 determines if the acceleration program 120 is installed on the client 205 or has been previously transmitted to the client 205. If the acceleration program 120 has not yet been provided to the client 205, then the method 350 continues at step 315 of the method 300 described above to transmit, install and execute the acceleration program. If the acceleration program 120 has been installed and is executing on the client 205, then the appliance 250, at step 375, sends a message to the acceleration program 120 on the client 205 to accelerate the application 220. At step 330 of method 350, the acceleration program 120 performs a plurality of acceleration techniques on the communications for the application 220, and may encrypt and/or decrypt such communications.

In further detail, at step 355, the appliance 250 may intercept by any suitable means and mechanisms a request from the client 205 to access an application provided by the server 206. In one embodiment, the packet engine 240 of the appliance 250 intercepts communications from the client 205. In other embodiments, the appliance 250 establishes a first transport layer connection with the client 205, for example, with the acceleration program 120, and a second transport layer connection with the server 205 on behalf of the client 205. As such, the appliance 250 may receive, intercept or otherwise obtain any of the client's communications transmitted to the server 206. In some embodiments, the appliance 250 intercepts a request for the client 205 to access an application 220 via an established transport layer connection with the server 206. In other embodiments, the appliance 205 intercepts a request to establish a communication session via any protocol layer above the transport layer connection, such as an application layer protocol of HTTP. In one embodiment, the appliance 205 intercepts a request from the client 205 to display and provide an application 220 from the server 206 via a remote display protocol, such as ICA or RDP.

At step 360, the appliance 250 determines whether the application 220 requested by the client 205 can be accelerated. In some embodiments, the appliance 250 identifies, extracts or otherwise processes an application identifier from the intercepted client request that identifies the application by name, type or category. In one embodiment, the application acceleration determination mechanism 275 is used by the appliance 250 to determine if or whether the application 220 can be accelerated. In some embodiments, the application acceleration determination mechanism 275 performs a query or lookup in a database, lookup table, or other structured source of data in memory or storage, such as a data structure or object, to determine if the application 220 can be accelerated. In another embodiment, the appliance 250 sends a communication such as request to a server 206 to determine whether the application 220 can be accelerated.

In other embodiments, the appliance 250 has a performance log or history to determine if the application 220 has been accelerated before and whether the acceleration had improvement on the performance and operation of the application 220. As such, the appliance 250 may determine that an application 220 can be accelerated if such acceleration meets a predetermined threshold of improvement to performance or operations of the application 220. In yet another embodiment, the appliance 250 provides heuristic rules based on the current operation and performance of the network 204, client 205 or server 206. In one embodiment, the application 220 may be determined to be capable of being accelerated if the client 205 has certain performance and operational characteristics or capabilities, for example, a certain speed processor or a minimum amount of memory. In some embodiments, the application 220 may be determined to be capable of being accelerated based on a configured policy or rule, such as in the policy manager of the appliance 250. For example, an application 220 to be communicated between a remote user with a certain type of client 205 accessing a certain type of application 220 and/or server 206 may be accelerated. In other embodiments, the application 220 may be determined to be capable of acceleration based on an authentication and authorization of the user or the client 205. In yet another embodiment, the application 220 may be determined to not be desired to be accelerated. For example, the application 220 is of a type that is infrequently used.

At step 365, if the application 220 is determined not to be capable of being accelerated or otherwise it is desired not to apply acceleration techniques to the application 220 on the client 205, the appliance 250 forwards the intercepted client request to the server 206 at step 368 and does not transmit or provide the acceleration program 120 to the client 205. In one embodiment, the appliance 250 may perform or provide appliance-based acceleration of the appliance 220. In other embodiments, the appliance 250 does not perform acceleration of the application 220 on the appliance 250. In yet another embodiment, the appliance 250 may perform some acceleration techniques and not others for the application 220 if the appliance 250 determines the application 220 is not capable of or otherwise desired to be accelerated.

At step 365, if the application 220 is determined to be capable of being accelerated or otherwise it is desired to apply acceleration techniques to the application on the client 205, the appliance 250 determines if the acceleration program 120 has been provided to the client 205. In one embodiment, the appliance 250 determines if the acceleration program 120 has been installed on the client 205 or is executing on the client 205. In some embodiments, the appliance 250 sends a communication to the acceleration program 120 on a client 205 to determine if the acceleration program 120 is running on the client 205. In other embodiments, the appliance 250 checks a log file or history file to determine if the acceleration program 120 has been transmitted to the client 205. In another embodiment, the appliance 250 checks with a health monitoring program 216 of the appliance 250 or the client 205 to determine if the acceleration program 120 is executing on the client 205.

If the appliance 250 determines the acceleration program 120 has not been transmitted, installed and/or executed on the client 205, the appliance 250 will provide the acceleration program 120 in accordance with the steps of method 300 described in conjunction with FIG. 3A. For example, the appliance 250 transmits the acceleration program 120 to the client 205, which the client 205 upon receipt automatically installs and executes. In one embodiment, upon performance of the suitable steps of the embodiment of method 300, the appliance 250 may communicate at step 275 a message to the acceleration program to apply one or more of the accelerations techniques to the application 220. In other embodiments, if the acceleration program 120 is already installed and executing, then at step 375 the appliance 250 communicates a message to the acceleration program 120 to apply one or more of the accelerations techniques to the application 220.

In some embodiments, the acceleration program 120 performs any of the acceleration techniques available by the acceleration program 120 to the identified application 120. In other embodiments, the appliance 250 indicates to the acceleration program 120 which of the acceleration techniques to perform for the application 220. In one embodiment, the acceleration program 120 may apply the desired acceleration techniques for the application 120 on a per session basis. That is, the message from the appliance 250 to the acceleration program 120 only informs the acceleration program 120 to perform acceleration techniques for this instance or session of the application 220. In other embodiments, once the acceleration program 120 receives a message from the appliance 250 to apply acceleration techniques for the identified application 220, the acceleration program 120 applies the acceleration techniques for any instances or sessions of the application 220, or until the client 205 is rebooted or restarted, or the appliance 205 is rebooted or restarted.

In one embodiment, the message from the appliance 250 at step 375 is not application specific. For example, the message informs the acceleration program 120 to execute one or more of the acceleration techniques for any application of the client 205. In some embodiments, the message sent to the client 205 informs the acceleration program 120 to stop using any one or more of the acceleration techniques for the application 220, or for all applications 220 a-220 n. In another embodiment, the appliance 250 communicates a message to the acceleration program 120 to ignore certain applications 220. In yet another embodiment, the appliance 250 communicates a message to the acceleration program 120 to provide configuration data or information to the acceleration program 120, such as an update to an acceleration technique or application of a new acceleration technique.

At step 330, the acceleration program 120 performs any of the plurality of acceleration techniques of the acceleration program 120 for the application 220, such as any techniques provided by 1) multi-protocol compression 238, 2) transport control protocol pooling 224, 3) transport control protocol multiplexing 226, 4) transport control protocol buffering 228, and 5) caching via a cache manager 232. The acceleration program 120 may also perform any encryption and/or decryption of communications of the application 220 between the client 205 and the server 206. In one embodiment, the acceleration program 120 performs multi-protocol compression of application related data. In another embodiment, the acceleration program 120 performs transport control protocol pooling, and in a further embodiment, the acceleration program 120 performs multiplexing via the pooled transport layer connection. In one embodiment, the acceleration program 120 performs transport control protocol buffering. In some embodiments, the acceleration program 120 performs caching. In other embodiments, the acceleration program 120 performs caching and compression. In one embodiment, the acceleration program 120 performs caching with transport layer pooling, and in a further embodiment also with multiplexing. In another embodiment, the acceleration program 120 performs multi-protocol compression with TCP buffering, and in a further embodiment, with transport layer pooling and, in yet a further embodiment, also with multiplexing. In another embodiment, the acceleration program 120 performs caching with compression, and in a further embodiment, with TCP pooling, and in yet a further embodiment, with multiplexing.

As such, the appliance 250 of the present invention dynamically determines whether to the accelerate an application or whether the application can be accelerated, and communicates to the client-side acceleration program 120 of the present invention to perform on the client 205 any one or more of the acceleration techniques for the application 220. Furthermore, in some embodiments, a plurality of acceleration programs 120 may be dynamically delivered to the client 205 by the appliance and automatically installed and executed by the client 205. For example, an acceleration program may be provided in accordance with the techniques and methods of the present invention for each connection to a server 205, or each communication session with an application 220. As such, the client 205 may automatically install and execute a plurality of acceleration programs 120 to handle and perform acceleration for each server 206 a-206 n or each application 220 a-220 n.

In one aspect, the present invention is related to performing a plurality of the acceleration techniques by the acceleration program in an efficient integrated manner. The acceleration program 120 intercepts network packets at the transport layer of a transport control protocol connection and uses a kernel-level data structure to obtain information and data, such as payload data, of a network packet to apply the plurality of acceleration techniques at a single interface point or place of execution in the acceleration program 120. Referring now to FIG. 3D, an embodiment of a method 380 for performing a plurality of acceleration techniques in an integrated manner is depicted. In brief overview, at step 280, the acceleration program 120 intercepts at the transport layer a network packet of a communication between the client 205 and server 206 via a transport layer connection. At step 390, the acceleration program 120 accesses at the transport layer the network packet via a kernel-level data structure, for example, a data structure provided via an API to the network stack 210 of the client 205. At step 395, the acceleration program 120 performs a plurality of the acceleration techniques in an integrated manner using the kernel-level data structure at an interface point or point of execution in the acceleration program 120.

In further detail, at step 385, the acceleration program 120 intercepts by any suitable means and mechanism a network packet of a communication between the client 205 and the server 206 via a transport layer connection. In one embodiment, the acceleration program 120 intercepts a network packet of, or related to, a request by the client, or a response thereto, to establish a transport layer connection between the client 205 and the server 206. In another embodiment, the acceleration program 120 intercepts a network packet of, or related to, a request, or a response thereto, to access or use an application 220 via the transport layer connection between the client 205 and the server 206. In one embodiment, the acceleration program 120 intercepts the network packet at the transport protocol layer via a transport driver interface or otherwise a network driver interfaced at a transport protocol layer of the network stack 210. In another embodiment, the acceleration program 120 intercepts the network packet at the transport protocol layer, or any other protocol layer of the network stack 210 via a Network Driver Interface Specification (NDIS) driver, or a mini-port driver, or a mini-filter driver. In some embodiments, the acceleration program 120 intercepts the network packet at the transport layer via a hooking or filtering mechanism.

At step 390, the acceleration program 120 accesses, or otherwise obtains information and data of the network packet intercepted at the transport layer via a kernel-level data structure 225. By using the kernel-level data structure 225, the acceleration program 120 can obtain information and data on the payload(s) or the one or more protocols carried or transported by the network packet at the transport layer. In some embodiments, using a kernel-level data structure to represent the network packet at the layers of the network stack at and/or above the transport layer enables the acceleration program 120 to perform or operate the plurality of acceleration techniques at the transport layer and for protocol layers carried by the transport layer network packet. In one embodiment, using a single kernel-level data structure 225 prevents or avoids copying and memory allocation along with context switching from using multiple data structures at various protocol layers of the network stack 210. In one embodiment, the acceleration program 120 copies the kernel-level data structure 225 to a second data structure, which may comprise another kernel-level data structure or a user-level data structure.

At step 395, the acceleration program 120 performs, executes or operates the plurality of acceleration techniques at single interface point or location in the program 210 or in a set of executable instructions or one point of execution of the program 210. The acceleration program 120 performs any of the plurality of acceleration techniques of the acceleration program 120, such as any techniques provided by 1) multi-protocol compression 238, 2) transport control protocol pooling 224, 3) transport control protocol multiplexing 226, 4) transport control protocol buffering 228, and 5) caching via a cache manager 232. The acceleration program 120 may also perform any encryption and/or decryption of communications of the application 220 between the client 205 and the server 206 at the same point in execution of the acceleration techniques of the acceleration program 120.

In one embodiment, the acceleration program 120 performs in a set of executable instructions, such as function call or one place or location, any desired plurality of the acceleration techniques subsequent to each other. For example, the acceleration program 120 obtains the intercepted network packet via a kernel-level data structure and then executes instructions representing the logic, function, rules or operation of the acceleration techniques subsequent to each other. As such, information and data of the network packet can be extracted or obtained once via the kernel-level data structure 225 and used as input, parameters, arguments and conditions for any of instructions of the acceleration program 120 representing the acceleration techniques. Although the network packet carries higher level protocol data and information, the acceleration program 120 in some embodiments, processes the network packet and the higher level protocol data and information at one point and at one time during execution. Additionally, the acceleration program 120 may perform each of a plurality of acceleration techniques in any desired order in an integrated manner, such as compression data stored to the cache manager 232, or compressing/uncompressing data retrieved from the cache.

In one embodiment, the acceleration program 120 performs multi-protocol compression and caching subsequently to each other. In another embodiment, the acceleration program 120 performs subsequent to each other operations related transport control protocol pooling and multiplexing via the pooled transport layer connection. In one embodiment, the acceleration program 120 performs transport control protocol buffering subsequently to compression and caching, or to TCP pooling and/or multiplexing. In some embodiments, the acceleration program 120 performs caching. In one embodiment, the acceleration program 120 performs caching subsequently with transport layer pooling and multiplexing. In another embodiment, the acceleration program 120 performs multi-protocol compression subsequently with transport layer pooling and multiplexing. In another embodiment, the acceleration program 120 performs caching and/or compression subsequently with TCP buffering, and in a further embodiment, subsequently with TCP pooling and multiplexing.

Although the acceleration program is generally described as subsequently performing the acceleration techniques, subsequent execution may also include other logic, functions, and operations not related to acceleration but integrated and executed in between each acceleration technique. The acceleration program still obtains operational and performance efficiency with such integration as the executable instructions for the acceleration techniques and any other operations or function are executed at a single interface point or point of execution in the acceleration program. Furthermore, the acceleration techniques for protocol layers carried or above the transport protocol layer are processed at one time and/or at one location at the transport layer. As such, acceleration techniques for these higher level protocols do not need to be applied again as the network packet traverses and gets processed in these higher levels of the network stack 210, or at a later point in the network stack 210.

In other aspects, the present invention can be practiced using a first program 222 and the acceleration program 120 (or also referred to as the second program in this embodiment). In one embodiment, the first program 222 along with the second program 120 can be used to facilitate and establish a virtual private network connection with a server 206, such as via appliance 250, over which the client-side acceleration techniques of the present invention may be applied. In another embodiment, the first program 222 is used to install and execute the second program, or the acceleration program 120. Referring now to FIG. 4A, an embodiment of a method 400 for practicing this aspect of the present invention is depicted. In brief overview, at step 402, the client 205 logs in and establishes a communication session with the appliance 205, At step 404, the appliance 250 sends the first program 222 to the client 205. At step 406, the client 205 installs and executes the first program 222, which in turns installs and executes the acceleration program 120, i.e., the second program. At step 407, the client 205 communicates with and accesses resources on a private network 204 via an established encrypted data communication session. At step 410, the client 205 logs out from the appliance 250 and terminates the communication session with the appliance 250.

At step 402 of method 400, the client 205 performs a log in procedure and establishes an encrypted data communication session with appliance 250 via network 204. In one embodiment, the encrypted data communication session is used as a tunnel to bridge traffic from client 205 to any of servers 206 a-206 n which reside behind appliance 250 in private data communication network 204′. In an embodiment, client 205 uses a web browser, such as Microsoft Internet Explorer® or Netscape Navigator®, to log in and establish a data communication session with appliance 250 using Secure Sockets Layer (SSL) or other encryption methods, such as IPSec, and Transport Layer Security (TLS). In another embodiment, a protocol such as Hypertext Transfer Protocol over Secure Sockets Layer (HTTPS) may be used to initiate the encrypted data communication session.

At step 404, in response to log in and establishment of the encrypted data communication session, appliance 250 sends a first program to client 205 over network 204. The first program is designed and constructed, or otherwise configured, to act as a tunnel endpoint for communication over the encrypted data communication session. In one embodiment, the first program comprises a plug-in application that is automatically installed and executed by the browser of the client 204. For example, the first program may comprise an ActiveX control that is provided as a plug-in to be executed by a Microsoft Internet Explorer® Web browser. In another embodiment, the first program may comprise a Java applet that is provided as a plug-in to be executed by a Netscape Navigator® Web browser or another control or programming component that works across network environments.

At step 406, client 205 installs and executes the first program 222, wherein executing the first program comprises installing a second program on client 205. In one embodiment, the first program 22 may be automatically installed and executed, such as using any of the techniques discussed in conjunction with method 300 and FIG. 3A. In some embodiments, the first program 222 obtains, downloads or receives the second program, or the acceleration program 120, from the appliance 250. In another embodiment, the first program 222 comprises a installer or install manager for the second program, such as the acceleration program 120 to automatically install and execute the second program, such as by way of a silent installation or an installation transparent to a user of the client 205, application 220 of the client 205, the appliance 250 or the server 206.

In one embodiment, the second program is configured, in part, to intercept communications from applications 220 running on client 205 that are destined for resources on network 204 and to provide the intercepted communications to the first program 222 for sending to appliance 250 via the encrypted data communication session. The second program may also be configured to provide intranet network name resolution service and optionally split network traffic. By splitting the traffic, an embodiment of the present invention is able to determine what traffic is channeled to an SSL tunnel or encryption tunnel of the first program 222 and what traffic is permitted or allows to continue along for processing by the transport layer of the network stack 210 under normal, routine, or typical operations of the client 205. In an embodiment, the second program comprises a dynamic interceptor (for instance, a filter device driver) that is inserted as a “hook” into an operating system of client 205. For example, the second program may comprise a filter device driver that is attached to the transport layer stack of the client operating system, such as the transport layer stack of a Microsoft Windows® operating system.

At step 408, once the first and second programs have been installed, applications running on client 205 may communicate with and access resources, such as applications and data, on private data communication network 204 via the established encrypted data communication session. The manner in which this communication occurs will be discussed in more detail below with respect to FIG. 4B. Note that, in an one embodiment, the functions of the first program and second program as described above are performed by a single control or programming component that is automatically installed and executed by client 205, such as the acceleration program 120 of the present invention. In addition to providing a virtual private network connection and communications, the first program 222 and/or second program, such as the acceleration program 120, may perform any of the acceleration techniques described herein on communications of the client via the virtual private network connection, e.g. the encrypted tunnel or bridge to appliance 250.

At step 410, client 205 performs a log out procedure to disconnect from network 204, which terminates the encrypted data communication session with appliance 250. In one embodiment, at time of logging out, the first program 222 automatically cleans up the modifications made to the operating system of the client 205 to return the operating system to a state prior to the installation of the first program 222 and/or second program. In one embodiment, the first program 222 and/or second program also includes an uninstaller or uninstall instructions to remove the first and second programs from the operating system of the client 205 or from further operation on the client 205 in a non-intrusive manner to the continued operations of the client 205. In yet another embodiment, the first program 222 and/or the acceleration program 120 removes any files, such an temporary files or cookies, used by applications of the client 205 during any communication connections or sessions provided using the present invention.

FIG. 4B depicts an embodiment of another method 450 of the present invention by which a client 205 communicates with and accesses resources on a private data communication network 204. For example, the method 450 represents a method by which step 408 of method 400 may be carried out. In brief overview, at step 452, the client 205 makes a new connection or resolves a domain name, such as a TCP/IP domain name resolution, via the first program and/or second program. At step 454, the second program is executed. At step 456, the second program intercepts communications from the client 205 destined to the private network 204′ and re-routes or sends the communications to the first program 222. At step 458, the first program 222 terminates or proxies the connection, separates the payload and encapsulates the payload for delivery via the established encrypted communication session. At step 460, the first program 222 sends intercepted communications over public network 204 to appliance 250 in private network 204 via pre-established encrypted communication session. At step 462, the appliance 250 decrypts communications received from the first program and forwards the decrypted communications to the appropriate destination resource, such as server 206 a-206 m. At step 464, the destination resource processed the decrypted communications, and at step 464 the destination resource sends responsive communication, if any, to the appliance 250. At step 468, the appliance 250 encrypts responsive communications and sends the encrypted communications over public network 205 to first program 222 of client 205 via pre-established encrypted communication session. At step 470, the first program 222 decrypts responsive communications and forwards decrypted communications on to the appropriate client application via the second program.

At step 452, an application 220 of a client 205 makes a new connection or resolves a domain name via the transport protocol layer of the network stack 210 of the client 205. In one embodiment, the application 220 may request to establish a transport layer connection between the client 205 and a server 206, or between the client 205 and the appliance 250. In another embodiment, the application 220 or the client 205 may request access to an application 220 provided by the server 206. For example, the server 206 may provide for server-based computing or thin-client computing by transmitting a remote display protocol of ICA or RDP representing output of an application 220 executing on the server 206. In another embodiment, the client 205 may request access to resources of a server 206, such as files or directories, or email services. In some embodiments, the client 205 may be on a public network 204 and the server 206 on a private network 204′. In other embodiments, the client 205 and server 206 may be on different private networks.

At step 454, the second program executes one or more functions automatically or otherwise before any transport layer functions are initiated. In some embodiments, the second program is or otherwise comprises the acceleration program 120 of the present invention. In one embodiment, the second program intercepts or otherwise receives the client request of step 452. In some embodiments, the application 220 of the client 205 makes API calls to the network stack 210 which are intercepted by the second program. Prior to any API calls being processed by the transport layer of the network stack 210, the second program is hooked into or otherwise interfaced to the network stack 210 to execute logic, rules, functions or operations prior to the communication being transmitted or processed for transmission via a transport layer connection.

At step 456, the second program intercepts communications from the client 205, such as by any application 220 a-220 n on client 205 that are destined for resources on network 204′ and re-routes them to the first program 222, which in an embodiment comprises an ActiveX control plug-in, a Java applet or other control or programming component that works across network environments. The second program may access, read or otherwise obtain destination information from the network packet or packets providing the intercepted communications to determine the communication is destined for network 204′, such as a private network behind appliance 250. For example, the second program may extract or interpret the destination IP address and/or port from the network packet. Upon determination an intercepted communication is destined for network 204′, the second program communicates the intercepted communication to the first program 222 via any suitable interface means and mechanism, such as via any inter-process communication interface or an API call. In one embodiment, the intercepted communication is sent to the first program 222 as is, or in other embodiments, the intercepted communication is pre-processed by the second program prior to sending to the first program 222. For example, the second program may remove the payload from the intercepted communication and forward the payload to the first program 222.

At step 458, each intercepted communication is terminated or proxied by the first program 222, and the first program 222 prepares the intercepted communication for transmission via the established encrypted data communication session. In one embodiment, the first program 222 separates out the payload and encapsulates the payload for delivery via the established encrypted data communication session. In another embodiment, the first program 222 encapsulates the intercepted communicated as received from the second program. In some embodiment, the payload is a TCP payload and is encapsulated into a new TCP connection between the client 205 and the server 206, such as via appliance 250.

At step 460, the first program 222 sends the intercepted communications over network 204 to appliance 250 in network 204′ via the pre-established encrypted data communication session. In some embodiments, the first program 222 encrypts the intercepted communications and sends the encrypted intercepted communications to appliance 250. In one embodiment, encryption is carried out in accordance with SSL protocols. In another embodiment, encryption is TLS based. Any type and form of encryption and/or decryption may be used by either first program 222 or the acceleration program 120.

At step 462, appliance 250 acts as a proxy terminating the connection sent by the first program 222. The appliance 250 decrypts the communications received from the first program 222, and forwards the decrypted communications onto the appropriate destination resource on network 204 via a second connection that the appliance 250 has established with the destination resource on network 204. In one embodiment, decryption is carried out in accordance with SSL protocols or other applicable encryption and decryption protocols. In some embodiments, the appliance 250 performs one or more acceleration techniques on the communication forwarded to the destination resource, such as one or more of the following: techniques provided by 1) multi-protocol compression 238′, 2) transport control protocol pooling 224′, 3) transport control protocol multiplexing 226′, 4) transport control protocol buffering 228′, and 5) caching via a cache manager 232′.

At step 464, the destination resource processes the decrypted communications. In one embodiment, the decrypted communications is a request to establish a connection or communication session. In another embodiment, the decrypted communications is a request to start or access an application 220 on behalf of the client 205. In other embodiments, the decrypted communications is a request for a web page, such as a HTTP request to receive a web page from a web server 206.

At step 466, if the decrypted communications include a request for which there is a response, then the destination resource sends out responsive communications to appliance 250. In some embodiments, the response includes an acknowledgement of establishing a connection or communication session as requested by the client 205. In other embodiments, the response includes an error message. In one embodiment, the response includes an authentication request or a challenge-response mechanism. In some embodiments, the response includes an acceleration program 120 to be used by the client 205. In another embodiment, the response includes HTML, such as a web page to be displayed by the client 205. In other embodiments, the response includes an object, such as a dynamically generated object.

At step 468, appliance 250 sends the responsive communications over network 204 to the first program 220 on client 205 via the pre-established encrypted data communication session. In one embodiment, the appliance 250 encrypts the responsive communications and sends the encrypted responsive communications to the first program 222. In some embodiments, encryption is carried out in accordance with SSL protocols or other applicable encryption and decryption protocols. Furthermore, the appliance 250 may perform any of the acceleration techniques of the present invention on communications to the client 205, such as multi-protocol compression 238′, caching 232′ or TCP buffering 228′.

At step 470, the first program 222 decrypts the responsive communications and forwards the communication to the appropriate application 222 via the second program. The first program 222 may use any suitable interface means and mechanism to communicate to the second program, such as via any type and form of inter-process communication mechanism or an API call. The second program provides the responsive communication via the network stack 210 of the client 205 to the application 220. As such, the application 220 transparently receives the responsive communication without any changes or modification to the application 220.

In accordance with another embodiment of the present invention, client 205 performs additional processing of the intercepted communications before sending the communications over the network 204 at step 458. Because an embodiment of the present invention provides a VPN solution that acts as a proxy terminating connections at the client before encrypting such data, the additional processing can be performed more effectively. Such processing can include Domain Name Service (DNS) name resolution of the intercepted communications in order to enable client applications to use whatever IP addresses they choose as well as dynamically change those addresses at run time. Such additional processing permits embodiments of the present invention to be effectively integrated with other technologies such as global service load balancing to achieve greater availability and greater efficiency among distributed gateways or servers. The additional connection processing can also enable the keeping of detailed logs and statistics regarding the intercepted communications.

In another embodiment of the present invention, appliance 250 terminates communications received from the first program on client 205 and further processes one or more requests included therein rather than forwarding the communications to a destination on network 204 as shown at step 462. This further processing can include back-end encryption wherein communications are re-encrypted by appliance 250 before delivery to the appropriate destination on network 204, thereby providing end-to-end network security. The destination will thereafter decrypt the traffic and respond appropriately. Further, such processing can permit appliance 250 to serve responses out of a cache rather than requiring additional work by a destination server, perform local network load balancing, global service load balancing and/or compression on the communications to enhance the efficiency and responsiveness of network 204.

In accordance with the above-described methods, a VPN based on an encrypted data communication session is established between client 205 and network 204. For example, in an embodiment, a secure VPN is established via HTTPS. Thereafter, all communications from client 205 to network 204 are routed via the first program to appliance 250, and vice-versa, through this encrypted data communication session. It should be noted that although the encrypted data communication session may be established using HTTPS, the communications that are passed through the encrypted data communication session need not be HTTPS packet data or even HTTP packet data. For example, the communications may also comprise Transmission Control Protocol/User Datagram Protocol (TCP/UDP) or Internet Control Message Protocol (ICMP) packet data, although these examples are not intended to be limiting. Furthermore, although the method described in reference to FIG. 4B describes a request-response type communication between an application on client 205 and a resource on network 204, encrypted communications in accordance with the present invention need not be request-response based. Rather, the communications can be of any type. Thus, any client application that can establish a connection or communication session, such as a UDP session, can send and receive encrypted communications in accordance with an embodiment of the present invention.

In another aspect, the present invention is related to the acceleration program 120 dynamically bypassing from the client any intermediary device to connect or communicate with a server 206. For example, a client 205 may connection with a server via one or more intermediaries, such as the appliance 250 of the present invention. For one reason or another, an intermediary may no longer be available for use by the client 205 to communicate with the server 206, for example, the appliance 250 may be down for maintenance or may be in the process of rebooting or restarting. The acceleration program 120 of the present invention determines the intermediary is not available and automatically establishes a different connection or communication session path with the server 206. This may occur transparently to the user or application of the client 205 such that the connection and/or communication session does not appear to have changed or otherwise has been disrupted.

Referring now to FIG. 5, an embodiment of a method 500 of the present invention for automatically bypassing an intermediary is depicted. In brief overview, at step 505, the acceleration program 120 establishes a transport layer connection between the client 205 and server 206 via an intermediary, such as appliance 250. At step 510, the acceleration program 120 determines the intermediary is not useable for communicating by the client 205 to the server 206 via the established transport layer connection. At step 515, the acceleration program 120 intercepts on the client 205 a communication from the client 205 to the serve 206. At step 520, the acceleration program 120 establishes a second transport layer connection between the client 205 and the server 206, and as a result, bypasses the intermediary determines as not useable for the client's communications to the server 206. At step 525, the acceleration program 120 transmits the intercepted communication of the client 205 to the server 206 via the second transport layer connection.

In further detail, at step 505, the acceleration program 120 establishes a transport layer connection between the client 205 and the server 206 via an intermediary. In one embodiment, the intermediary comprises an appliance 205. In other embodiments, the intermediary comprises one of the following: a cache, a server, a gateway, a firewall, a bridge, a router, a switch, a hub, a proxy, or any software application or program acting as or providing the functionality and operations of any of these types and forms of intermediaries. In one embodiment, the intermediary may operate on the server 206. In some embodiments, the transport layer connection is established via a plurality of intermediaries of the same type and form or of a different types and forms. In another embodiment, the transport layer connection comprises of the connection of a pool of transport layer connection either established as the client 205 or at the appliance 250 in accordance with the operations of the present invention described herein.

At step 510, the acceleration program 120 determines the intermediary is not available or otherwise is not useable for communicating by the client 205 to the server 206 via the established transport layer connection. The acceleration program 120 may determine the status or availability of the intermediary by any suitable means and/or mechanism. In one embodiment, the acceleration program 120 determines the intermediary is not available by receiving an error message or failure reply associated with a transmission to the intermediary. For example, the acceleration program 120 may receive a failed transport layer communication response when transmitting a communication from the client 205 via the established transport layer connection. In another embodiment, the acceleration program 120 may transmit a ping command to the intermediary on a predetermined frequency to monitor the status and availability of the intermediary. If the acceleration program 120 does not receive a reply from the intermediary or in some embodiments, receives a delayed reply or a reply with a longer than desired latency, the acceleration program 120 may determine the intermediary is not available or useable by the client 205. In other embodiments, a server 206, appliance 250 or the intermediary may send a message to the client 205 or acceleration program 120 providing information identifying the intermediary is not available or otherwise is not useable by the client 205. In some embodiments, the established transport layer connection is disrupted or interrupted, or in other embodiments, is closed.

At step 515, the acceleration program 120 intercepts a communication from the client 205 to the server 206 destined to travel via the intermediary through the established transport layer connection. The acceleration program 120 may intercept the communication at any point and at any protocol layer in the network stack 210. In one embodiment, the acceleration program 120 intercepts the communication at the transport protocol layer prior to transmission on the established transport layer connection. For example, in some embodiments, the acceleration program 120 comprises a network driver having a transport driver interface or otherwise interfaced to the transport protocol layer. In other embodiments, the present invention is practiced with a first program 222 and the acceleration program 120 as a second program as discussed in conjunction with FIGS. 4A-4B, in which either the first program 222 or the acceleration program 120 intercepts the communication.

At step 520, the acceleration program 120 establishes a second transport layer connection to the server 205 for the client 205 in order to bypass the intermediary determined to be unavailable or not useable by the client at step 510. In one embodiment, the acceleration program 120 establishes a second transport layer connection directly to the server 206, for example, when the client 205 and server are on the same network 205 or on different networks routable between the client 205 and the server 206. In another embodiment, the acceleration program 120 establishes the second transport layer connection with a second intermediary, such as a second appliance 250′. In some embodiments, the acceleration program 120 requests the appliance 250 to establish another transport layer connection with the server 250. In one embodiment, the appliance 250 uses a second transport layer connection of a pool of transport layer connections to the server 206. In another embodiment, the acceleration program 120 request the server 206 to establish the second transport layer connection. In some embodiments, the acceleration program 120 uses a second transport layer connection from a pool of transport layer connections established by the acceleration program 120 with the server 206 in accordance with the operations of the present invention described herein.

In one embodiment, the acceleration program 120 establishes the second transport layer connection at step 520 transparently to a user or application 220 of the client 205, or in some embodiments, transparently to any protocol layer above or below the transport layer. In some aspects, the second transport layer connection is established automatically for the client 205 upon determination at step 510 that the intermediary is not available or should not be used by the client 205. In other embodiments, the second transport layer connection is established automatically upon failure of transmission of the intercepted communication to the server 206, e.g., the first attempt to transmit the communication. In some embodiments, the second transport layer connection is established automatically upon failure of one or more retried transmissions of the communication, or upon exhausting a predetermined number of retries. In another embodiment, the second transport layer connection is established upon determination the intermediary is delaying the rate of transmit or receipt of network packets, causing latency or otherwise affecting the use of the transport layer connection in an undesired manner. In one embodiment, the acceleration program 120 performs load-balancing and establishes a second transport layer connection bypassing the intermediary to offload any processing or operations of the intermediary to the client 205 and/or second intermediary.

At step 525, the acceleration program 120 transmits the intercepted communication of the client 205 to the server 206 via the second transport layer connection. In one embodiment, the acceleration program 120 transmits the intercepted communication directly to the server 106. In other embodiments, the acceleration program 120 transmits the intercepted communication via a second intermediary, such as a second appliance 250. By using the second transport layer connection, the acceleration program 120 bypasses the intermediary and continues the operations of an application 220 of the client 205 with the server 206. In one embodiment, an application 220 of the client 205 continues with operations and communications with the server 220 as if the application 220 was continuing to use the previously or first established transport layer connection. As such, the acceleration program 120 prevents, avoids or circumvents any communication interruption, disruption, latencies, delays or other operational or performance issues that may occur if the intermediary was not bypassed by the acceleration program 120. In another aspect, this technique of the present invention automatically provides the client 205 continuous access to a server 206 or remotely-accessed application even if there is an issue with or disruption in access from an intermediate device.

Moreover, the redirection and bypassing techniques of the present invention described above can be used to perform load-balancing and traffic management on the client 205 to access one or more servers 206 a-206 n providing applications 220 a-220 n, or other content and functionality to the client 205. For example, in one embodiment, an intermediary or appliance used by the client to access a server may be overloading with increasing transport layer connections, and decreasing rate of responses, performance or other operations. Upon determination of decreasing performance of the intermediary or appliance, the acceleration program 120 can redirect the client to another intermediary or appliance, or server to bypass any performance bottlenecks in the client's end-to-end connectivity to the server.

In other aspects, the present invention is related to client-side acceleration techniques related to or performed at the transport protocol layer of the network stack of the client. The acceleration program 120 may comprises executable instructions to perform any one or more of 1) transport control protocol (TCP) buffering 228, 2) TCP connection pooling 224, and 3) TCP multiplexing 226. In some embodiments, as the acceleration program 120 transparently processes communications intercepted at the transport protocol layer of the client's network stack, the acceleration program 120 can control and manage the TCP connections of the client, and the use and transmission over the connections by applications 220 a-220 n of the client 205. FIG. 6 depicts an embodiment of method 600 of practicing the TCP buffering techniques of the present invention, while FIGS. 7A-7B depicts an embodiment of the TCP connection pooling technique of the present invention and FIGS. 8, 9, and 10 the TCP multiplexing technique.

In brief overview of an embodiment of method 600 depicted in FIG. 6, at step 605, the acceleration program 120 intercepts a communication from the client 205 to the server 206, such as a request to access the server 206 by the client 205. At step 610, the acceleration program 120 determines whether a difference between a rate of consumption of received server responses and a rate of production of requests transmitted by the client falls below a predetermined threshold. If at step 615, the difference in product and consumption rates does not fall below the predetermined threshold, the acceleration program 120 forwards the communication to the server 260 at step 617. If at step 615, the difference in rates is below the predetermined threshold, then at step 620, the acceleration program 120 stores the communication in memory of the client 205. At step 625, the acceleration program 120 determines if the difference in rates has changed to above the predetermined threshold, and if so forwards the stored communication to the server 206. Otherwise, the acceleration program 120 maintains the communication in memory of the client 205 until a point in time the difference in rates change at step 625 to above the predetermined threshold. For example, if the client 205 is transmitting requests to the server 206 at a greater rate than by which the client 205 can consume the generated responses, the acceleration program 120 of the present invention holds further transmission until a future point in time at which the difference in the rates haves changed.

In further detail, at step 605, the acceleration program intercepts a communication from the client 205 to the server 206. The acceleration program 120 may intercept the communication at any point and at any protocol layer in the network stack 210. In one embodiment, the acceleration program 120 intercepts the communication at the transport protocol layer prior to transmission on the established transport layer connection. For example, in some embodiments, the acceleration program 120 comprises a network driver having a transport driver interface or otherwise interfaced to the transport protocol layer. In other embodiments, the present invention is practiced with a first program 222 and the acceleration program 120 as a second program as discussed in conjunction with FIGS. 4A-4B, in which either the first program 222 or the acceleration program 120 intercepts the communication. In one embodiment, the communication comprises a request by the client 205 to use or otherwise access a resource of the server 206, such as an application 220.

At step 610, the acceleration program 120 determines whether a difference between a rate of consumption and a rate of production of the client 205 falls below a predetermined threshold. In one embodiment, the acceleration program 120 counts and tracks the number of requests transmitted by the client 205 to the server 206, and in another embodiment, the acceleration program 120 counts and tracks number of responses received by the client 205 from the server 206. In some embodiments, the client 205 tracks responses transmitted and requests received on a per application 220 basis. The responses and requests may be tracked at any protocol layer of the network stack 210. In one embodiment, the number of requests transmitted by the client 205 or application 220 is counted and tracked from the point of submission to the transport layer or to a transport layer connection between the client 205 and server 206. Likewise, in another embodiment, the number of responses received by the client 205 or application 220 from the server 206 is counted and tracked from the point of receipt at to the transport layer or from the transport layer connection between the client 205 and server 206, and/or at the point the response is provided to a protocol layer, such as an application layer, above the transport layer of the network stack 210.

In some embodiments, the acceleration program 120 accesses, inspects or otherwise obtains information and data about the send and receive TCP buffers of the transport layer connection established by the acceleration program 120 between the client 205 and server 206. For example, the acceleration program 120 may determine the default and maximum size of any TCP/IP buffer and the currently used portions of the buffer to determine a difference in rates between sending and receiving of network packets from the client 205 to the server 206. In other embodiments, the acceleration program 120 uses any type and form of congestion algorithm to determine if there is congestion causes by a difference in consumption and product of network packets from the client 205 to the server 206. In another embodiment, the acceleration program 120 interfaces with or obtains information or data from a congestion algorithm uses by the transport layer connection, such as by a network driver or TCP service provider. For example, in one embodiment, the acceleration program 120 determines information and data regarding the congestion window used by the connection.

The predetermined threshold can be configured, specified, defined or identified by any suitable means and mechanism of the acceleration program 120. In one embodiment, the threshold may be specified as a percentage, relative, absolute or otherwise, between the production rate and consumption rate of the client 205 and/or application 220. The rates for consumption and/or product may be identified by a number of consumed receipts and produced transmissions respectively, over any time period at any granularity. In some embodiments, the threshold may be specified as a quantity difference between the rate of production and consumption of the client 205 and/or application 220, and in some embodiments, a quantity difference over a time period. For example, the threshold may be specified as the point in time the client 205 has produced 100 requests more than the client 205 has consumed. In another example, the threshold may be specified as the point in time when the client 205 is producing 10 requests per time period to the server 206 more than the requests consumed by the client 205 during the same time period.

At step 615, if the difference in product and consumption rate of the client 205 and/or application 220 is not below the predetermined threshold, the acceleration program 120 forwards the communication to the server 260 at step 617. In some embodiments, the acceleration program performs any of the acceleration techniques of the present invention for the communication. For example, the communication may be forwarded to the server via a pooled multiplexed transport layer connection, and additionally, may be compressed. In other embodiments, the client 205 may forward the communication to an appliance 250 providing a connection for the client 205 to the server 206.

At step 615, if the difference in product and consumption rate of the client 205 and/or application 220 is below the predetermined threshold, the acceleration program 120, at step 620, stores the communication in memory of the client 205. In some embodiments, the memory may be memory of the kernel-mode 202 of the client 205, while, in other embodiments, the memory may be in user-mode 203 of the client 205. In one embodiment, the acceleration program 120 may store the communication in cache via the cache manager 232. In other embodiments, the acceleration program 120 may use an object, data structure or other data element accessible by the acceleration program 120 to buffer, hold or otherwise store the intercepted communication. In one embodiment, the intercepted communication may be stored in a compressed manner in memory. In another embodiment, the acceleration program 120 sends the intercepted communication to a first program 222 to store or hold in memory for transmission at a later point in time.

At step 625, the acceleration program 120 determines when to transmit the stored communication to the server 206. In one embodiment, the acceleration program 120 performs steps 610 and 615 to determine if the difference in production and consumption rates of the client 205 are above the threshold upon which the acceleration program 120 forwards the stored communication to the server 206 at step 617. In some embodiments, the acceleration program 120 compares the difference in production and consumption rates on a regular or predetermined frequency or on a polling or event basis, and when the difference rises above the predetermined threshold, the acceleration program 120 forwards the communication to the server 206. In other embodiments, the acceleration program 120 sets or configures a timer to determine how long to store the intercepted communication. Upon expiration of the timer the acceleration program 120 transmits the stored communication to the server 206. In another embodiment, the acceleration program 120 checks the number of server responses consumed by the client 205 since storing the intercepted communication. If the number of consumed responses is greater than a predetermined number, the acceleration program 120 releases the intercepted communication from the memory buffer or storage and submits the communication for transmission to the server 206.

If at step 625, the acceleration program 120 determines the rates of production or consumption have not changed in a suitable manner, the acceleration program 120 holds or maintains the intercepted communication in memory until a suitable point of time is reached. In one embodiment, the acceleration program 120 forwards the communication to the server at step 617 even if the production and/or consumption rates do not change. For example, after a period of time waiting for the production and/or consumption rate to change and the rates do not change, the acceleration program 120 forward the communication to the server 206.

Although the TCP buffering technique of the present invention is generally discussed in relation to an intercepted communication or request, the embodiments of the method 600 of the present invention may be practiced subsequently, nearly simultaneously or concurrently for multiple intercepted communications of the client 205 to the server 205. Additionally, in another embodiment, the method 600 of the present invention may be practiced on the client regarding communications from the client to multiple servers 206 a-206 n. For example, a first instance of method 600 may be practiced between the client 205 and a first server 206 a, and a second instance of method 600 may be practiced between the client 205 and a second server 206 b. Furthermore, in some embodiments, the method 600 may be practiced for a first application 200 a and also for a second application 200 b, using the respective production and consumption rates of each application. In other embodiments, the method 600 may be practiced for a first application 200 a but not a second application 200 n.

According to another aspect of the present invention, the client-side acceleration program 120 reduces the processing load of servers 206 a-206 n and/or appliance 250 caused by repeatedly opening and closing connections of the client clients by opening one or more connections with each server and maintaining these connections to allow repeated data accesses by applications of the client 205 to the server 206. This technique is generally referred to herein as “connection pooling.” In brief overview of method 700, at step 702, the acceleration program 120 intercepts an application's request to access a server, and at step 704, determines the identity of the server associated with the request. At step 706, the acceleration program 120 determines if the acceleration program 120 has an established transport layer connection to the server 206 free for use by the application 220. If there is not a transport layer connection to the server 206 free for use by the application 220, the acceleration program 220 establishes, at step 708, a transport layer connection to the server 206 for use by the client 205. At step 706, if there is a transport layer connection available for use by the application 220, at step 710, the acceleration program 120 translates the application's request for transmission or communication via the available transport layer connection.

In further overview, at step 712, the acceleration program 120 receives the response to the request from the server 206, and at step 714 translates the response into a response to the application 220. At step 716, the acceleration program 120 may maintain or keep the transport layer connection open for use by any of the applications 220 a-220 n of the client 205. By maintaining on the client 205 open transport layer connections with the servers 206 a-206 n and by opening and closing connections with the applications as needed, the acceleration program 120 frees the servers of TCP connection loading problems associated with serving the client 205 over the network 204, such as the Internet. At step 718, the acceleration program 120 at some point closes the transport layer connection if the connection is determined no longer used by one or more application 220 of the client 205 to access the server 206.

In further detail, at step 702, the acceleration program 120 intercepts a request by any application 220 a-220 n of the client 205 to access a server 206. In some embodiments, the request is intercepted at the transport protocol layer before establishing or transmitting the request via a transport layer connection. In other embodiments, the request is intercepted at any protocol layer above the transport layer or a transport layer connection. In one embodiment, the request of the application 220 is a request to open or establish a transport layer connection with the server 206. In some embodiments, in response to the request, the acceleration program 120 establishes a first transport layer connection of a pool of transport layer connections for use by applications 220 a-220 n of the client 205. In another embodiment, the application request is a request to access the server via an established transport layer connection of the client 205.

At step 704, the acceleration program 120 determines the identity of the server 206 from the request by any suitable means and mechanism. In some embodiments, the domain name or internet protocol address of the server 206 is identified or otherwise referenced by the contents of the request, for example a text string of the request may identify the domain name of a server 206. In one embodiment, the identity of the server 206 is determined by the header information of a TCP packet, such as the destination internet protocol address and port number. In another embodiment, the server 206 is associated with the application 220, and the acceleration program 120 looks up or queries the association in a database or other structured information storage.

At step 706, the acceleration program 120 determines if there is a transport layer connection available for use or is otherwise free to use by the application 220. In one embodiment, the acceleration program 120 may have not yet established a transport layer connection with the server 206, and as such, there is not a transport layer connection available for the application 220 to use. In another embodiment, the acceleration program 120 may have a previously established transport layer connection with the server 206 but determines that another application 220 is currently actively using the connection. As will be discussed in further detail below, the acceleration program 120 determines if an established transport layer connection is available for use by another application or can be shared by applications 220 s-220 n based on the length of a message being received from the server 206 for the application 220, such as a response to a request, and/or if the communications between the server 206 and application 220 are currently idle.

At step 708, if the acceleration program 120 determines a transport layer connection is not available for use by the application 220, the acceleration program 120 establishes a transport layer connection with the server 206. In some embodiments, the transport layer connection established at step 708 is the first transport layer connection with the server 206, and in other embodiments, the transport layer connection is a second transport layer connection of a plurality of transport layer connections to the server 206. In yet another embodiment, the acceleration program 120 waits for an already established transport layer connection to become available or free to communicate the application's request to the server 206. For example, the acceleration program 120 may determine a first application 220 a may be shortly completing a transaction with the server 206 via an established connection.

At step 710, the acceleration program 120 translates the application's request to be transmitted via the transport layer connection to the server 106. In some embodiments, the acceleration program 120 uses one port number for the transport layer connection communication for all applications 220 a-220 n of the client 205 sharing the connection. In some cases, the acceleration program 120 tracks the requests and outstanding responses for the requests on an application by application basis. As such, the acceleration program 120 recognizes which application 220 is transmitting and receiving network packets via the transport layer connection to the server 206 at any given point in time. In one embodiment, only one application 220 at a time is sending and receiving on the transport layer connection and thus the acceleration program 220 understands which application 220 is using the connection. In some embodiments, the acceleration program 120 associates a process id of the application 220 with the request. In other embodiments, the acceleration program 120 provides and associates a port number with the application 220, and modifies the port number in the TCP network packet to be transmitted to application's assigned port number. In another embodiment, the port number is provided by the application 220 and the acceleration program 120 changes or otherwise provides the port number accordingly in the TCP network packet.

At step 712, the acceleration program 120 receives a response to the application's request from the server 206. In one embodiment, the server 206 does not respond to the request. In another embodiment, the server 206 responds with an error or failure message. In some embodiments, the server 206 responds with multiple responses. In other embodiments, the server 206 responds with a response comprising multiple network packets or multiple TCP segments. In another embodiment, the server 206 responds with one or more network packets identifying the source port number associated with or assigned to the application 220. In one embodiment, the server 206 responds with one or more network packets identifying a source port number of the transport layer connection and used for multiple applications of the client 205.

At step 714, the acceleration program 120 translates or otherwise processes the response from the server 206 in a manner responsive to the application 220. In one embodiment, the acceleration program 120 replaces the source port number of the received network packet or packets with the port number of the application 220. In another embodiment, the acceleration program 120 determines via a tracking mechanism the application 220 currently using the transport layer connection and passes the response to the application 220 via the network stack 210. In one embodiment, the response is not altered and passed for processing via the protocol layers of the network stack 210 above the transport layer of the connection. In some embodiments, the acceleration program 120 waits for multiple portions, such as TCP segments, of the response to be received before processing and forwarding the response to the application 220. In one embodiment, the acceleration program 120 passes the response to a first program 222, which interfaces with and provides the response to the application 220.

At step 716, the acceleration program 120 maintains or keeps the transport layer connection open in a pool of one or more transport layer connections from the client 205 to the server 206. In one embodiment, the acceleration program 120 or a transport layer driver of the network stack 210 includes a keep-alive mechanism that periodically probes the other end of a connection when the connection is otherwise idle, for example where when there is no data to send. The keep-alive mechanism may send this message in order to receive a response to confirm the connection is still active although the connection may be idle. The keep-alive message and corresponding response may include any type and form of format, command, directive or communication. As such, in some embodiments, the acceleration program 120 transmits or causes to transmit via a transport layer driver a keep-alive message to the transport layer connection. In some embodiments, the acceleration program 120 sets a frequency for the keep-alive messages, and in other embodiments, changes the frequency of the keep-alive messages based on the behavior or activity of the applications 220 a-220 n using the connection.

In some embodiments, the acceleration program 120 intercepts any RST and/or FIN commands, i.e., TCP/IP commands to reset and/or terminate the TCP connection, received over the transport layer connection. In one embodiment, the acceleration program 120 ignores, takes no action on, or otherwise drops, deletes or flushes the intercepted RST and/or FIN command. In another embodiment, the acceleration program 120 intercepts and receives a RST and/or FIN commands but sends a message to the other end of the connection to keep or maintain the connection open. In other embodiments, the acceleration program 120 establishes a new transport layer connection in response to a closing of an established transport layer connection due to processing of a RST and/or FIN command.

In other embodiments, the acceleration program 120 inserts an instruction, command or directive in an intercepted communication of the client 205 to direct the server 206 to keep the connection open or to otherwise not close the connection unless the client 205 sends a command to do so. For example, in one embodiment, the acceleration program 120 intercepts a communication of a GET request of the HTTP protocol, such as protocol version 1.0, and inserts a keep-alive header, e.g., “Connection: Keep-Alive”, into the communication to the server 206. In other embodiments, a GET request or other HTTP command may include the keep-alive header. In these embodiments, the acceleration program 120 may intercept the communication and check for the keep-alive header and then forward the communication to the server 206. In some embodiments, version 1.1 or greater of HTTP is used by which the keep-alive mechanism is implicit such that the server 206 keeps the connection open until the client 205 requests to the close the connection. In other embodiments, the acceleration program 120 keeps the transport layer connection open to the server 206 until the client 205 is rebooted or restarted, the network 204 becomes unavailable or the client 205 is disconnected from the network 204, or the server 206 is rebooted or restarted.

At step 718, the acceleration program 120 may close any one or more of the transport layer connections between a client 205 and a server 206 at any desired point in time. In some embodiments, the acceleration program 120 closes a transport layer connection upon the termination of the one or more applications 220 a-220 n on the client 205 using the connection. In other embodiments, the acceleration program 120 closes a transport layer connection upon expiration of a time out period for any application 220 a-220 n to use the connection. For example, the acceleration program 120 may configure, set or provide a timer to expire upon a predetermined time period and if the connection is or remains idle during the time period, the acceleration program 120 closes the connection. In some embodiments, the server 206 may be rebooted, restarted, or the connection disrupted or interrupted and the acceleration program 120 closes the connection. In some embodiments, the acceleration program 120 transmits or causes to be transmitted a RST and/or FIN command to close connection upon completion of sending requests to and receiving all the data of responses from the server 206. In other embodiments, the transport layer connection or pool of transport layer connections are closed upon restart or reboot of the client 205, disconnection to the network 204 or unavailability of the network 204, or restart or reboot of the server 206.

In some embodiments, a first transport layer connection to the server 206 is kept open while a second transport layer connection to the server is closed as the acceleration program 120 determines only the first transport layer connection is needed for sharing a connection to the server 206 by one or more applications 220 a-220 n of the client 205. In other embodiments, the acceleration program 120 maintains a pool of one transport layer connection to any server 206 a-206 n and establishes a second or a plurality of connections to a given server 206 based on increased requests, communications or transport layer connection usage of the applications 220 a-220 n on the client 205

Although an embodiment of method 700 is generally discussed in relation to a pool of one or more transport layer connections from the client 205 to a server 206, the acceleration program 120 may establish subsequently, nearly simultaneously, or concurrently a pool of transport layer connections between the client and each of a plurality of servers 206 a-206 n. As such, a first application 220 a and a second application 220 b may be using a first pool of one or more transport layer connections to server 206 a, and a third application 220 c and a fourth application 220 d using a second pool of one or more transport layer connection to server 206 b. Furthermore, each of the steps of an embodiment of the method 700 can be performed in different instances and at different frequencies. In some embodiments, multiples instances of the acceleration program 120 may be used to handle each pool of one or more transport layer connections to each server 206 a-206 n.

FIG. 7B is a diagrammatic view of a message step illustrating the transport layer connection pooling techniques of the present invention according to one example embodiment. In brief overview, FIG. 7B depicts a flow diagram of an acceleration program 120 providing a transport layer connection for use by two applications 220 a and 220 b of a client 205, to a server 206 in one embodiment, or to an appliance 205, in another embodiment. The acceleration program 120 on client 204 opens a first transport layer connection between client 205 and the server 206, or appliance 205, using network address 1 provided by application 220 as depicted by step 752. Step 752 is shown as a two-way step because the TCP/IP protocol employs a multi-stage handshake to open connections.

Once the transport layer connection is established, the acceleration program 120 intercepts a GET request from application 220 a specifying a path name of /sales/forecast.html, as shown by step 754. Because no free transport layer connection is open between acceleration program 120 and server 206, or appliance 205, acceleration program 120 opens a transport layer connection. In one embodiment, acceleration program 120 maps the request of the application 220 a to a second network address of network address 2 which specifies server 260, as shown by step 756. For example, the acceleration program 120 performs network address translation to modify the destination IP address and/or destination port to a server 206 a requested by the application 220 a or to another server 206 b that can also handle or respond to the request. In another embodiment, the acceleration program 120 sends the request to the server 206, or appliance 250, as received or as generated by the application 220 s.

Acceleration program 120 also passes the GET request to that server 206, or appliance 250, as shown by step 758. In one embodiment, the appliance 250 forwards the request to the server 206, and in a further embodiment, the appliance 250 forwards the request via a pooled or pooled and multiplexed transport layer connections between the appliance 250 and the server 206. In some embodiments, the server 206 responds with the requested web page, as shown by step 760. Acceleration program 120 forwards the web page to application 220 a, as shown by step 762. In one embodiment, the transport layer connection between the acceleration program 120 and the server 206, or appliance 250, is closed, as shown by step 764. In other embodiments, the acceleration program 120 intercepts the close request, and ignores the request leaving the transport layer connection open. According to the TCP/IP protocol, closing a network connection can involve a multi-stage process. Therefore, the flow line of step 764 is shown as bidirectional. In other embodiments and in accordance with the techniques of the pooling aspect of the present invention, the transport layer connection established for and used by the first application 220 is kept open or otherwise maintained to accommodate further data steps from the same application 220 a or a different application, such as the second application 220 b.

At step 766, the acceleration program 120 intercepts a request from the second application 220 a to the server 206, or appliance 250. If there is a free transport layer connection open and/or useable by the second application 220 b, such as the transport layer connection established at step 756 for the first application 220 a, the acceleration program 120 uses this previously established transport layer connection. As such, a second transport layer connection does not need to be opened at step 766. Otherwise, the acceleration program 120 establishes a second transport layer connection to the server 206, or appliance 250. At step 768, the acceleration program intercepts a request from the second application 220 b, for example requesting the Web page /sales/forecast.html, and transmits the request to the server 206, or appliance 250, at step 770. Because a free connection is already open between the acceleration program 120 and server 120, it is unnecessary for the acceleration program 120 to burden the server 120 with the processing load of opening a further connection. At step 772, the acceleration program 120 intercepts or receives a response from the server 206, such as via appliance 250 from the transport layer connection, and forwards the response to second application 220 b. At step 776, the acceleration program 120 intercepts a close request from the second application 220 b, and in some embodiments, closes the connection, while in other embodiments, ignores the request, and keeps the connection to accommodate further data requests from the first application 220 a, the second application 220 b, or yet another application 220 c-220 n of the client 205.

There are a number of scenarios that result in the acceleration program 120 closing the connection with server 206, or application 250, at step 776. For example, the client 205 or acceleration program 120 may initiate a FIN (finish) command upon determination that the client 205 has retrieved all the requested data for applications 220 a and 220 b, or upon termination, shutting down or exiting applications 220 a and 220 b. In some embodiments, the client 205 or acceleration program 120 may also initiate a RST (reset) command under similar conditions. In addition to closing the connection between the acceleration program 120 and the server 206, or the appliance 250, the RST command results in a number of housekeeping operations being performed to keep the server side connection in good order. In particular, the TCP protocol guarantees that the RST command will have the right SEQ (sequence) number so that the server will accept the segment. However, the RST command is not guaranteed to have the right ACK (acknowledge) number. To take care of this scenario, the acceleration program 120 keeps track of the bytes of data sent by the server 206, or appliance 250, and the bytes acknowledged by the client 205. If the client 205 has not yet acknowledged all the data by the server 206, the acceleration program 120 calculates the unacknowledged bytes, and sends an ACK to the server 205.

Furthermore, although not shown in FIG. 7B, the server 206, or appliance 250, can also close a connection between itself and the client 205. The server 206, or appliance 250, would send a FIN command to the client 205. In response, in some embodiments, the acceleration program 120 closes the connection, and a further embodiment, re-establishes another connection with the server 206, or appliance 250.

Moreover, although an embodiment of method 700 of FIG. 7A and the example flow diagram of FIG. 7B are generally discussed as pooling one or more transport layer connections for use by a plurality of applications, the pooling technique of the present invention can be applied to a single application 220 that requests or initiates a plurality of transport layer connections and requests via these connections. For example, in an embodiment of HTTP protocol, a transport layer connection may be established for each HTTP request from an application. Using the techniques of the present invention, a pool of one or more transport layer connections can be used by the application 220 without opening and closing transport layer connections for each request.

In another aspect, the present invention is related to techniques for multiplexing application requests via the same or shared transport layer connection, such as a transport layer connection established via the pooling techniques described in conjunction with FIGS. 8A-8B. In some embodiments, the present invention determines the availability of an established transport layer connection and multiplexes requests from a plurality of application via the connection by checking whether the content of a response from the server 206 to an application's requests has been completely received. As will be discussed in further detail below, the present invention uses in one embodiment, the content-length parameter of a response, and in another embodiment, a chunked transfer encoding header of a response to check if all the data of a response has been received. In one aspect, the present invention checks whether all the data from a response has been received to determine if a pooled connection is currently free for use by an application, and/or whether to establish another transport layer connection to the pool of connections to the server, such at steps 706 and 708 of method 700 depicted in FIG. 7A. In another embodiment, the technique of checking the content length for a response is used as a technique for multiplexing requests from a plurality of applications via the same transport layer connection.

Referring now to FIG. 8A, an embodiment of a method 800 for multiplexing requests via a single transport layer connection from the client 205 to the server 206 is depicted. In brief overview, at step 805, the acceleration program 120 establishes a transport layer connection between the client 205 and server 206. At step 810, the acceleration program 120 intercepts a first request of a first application 220 a to the server 206. At step 815, the acceleration program 120 determines whether the transport layer connection is currently being used by another application or is otherwise idle. At step 817, if the transport layer connection is available to use by the application 220 a then at step 820, the acceleration program 120 transmits the request to the server. Otherwise, at step 817, if the transport layer connection is not available to use by the application 220 a, then the acceleration program 120 at step 819 either waits for a time period and returns to step 815, or establishes a second transport layer connection for use by the application 220. At step 825, the acceleration program 120 receives a response to the application's request from the server. At step 830, the acceleration program 120 intercepts a second request, by a second application 220 b, and proceeds at step 815 to determine if the transport layer connection is available for use by the second application 220 b. In some embodiments, the acceleration program 120 intercepts the request of the second application 220 b at step 830 prior to receiving the response of the first request at step 825, or prior to receiving all of the data of the response. As discussed further herein, in some embodiments, the acceleration program 120 uses content length checking technique to determine when the transport layer connection is idle or an application has received all the data to a response to a request.

In further detail, at step 805, the acceleration program 120 establishes a transport layer connection between the client 205 and server 206. In some embodiments, the acceleration program 120 establishes the transport layer connection with or via the appliance 250, or an intermediary. In one embodiment, the acceleration program 120 establishes the transport layer connection as a pool of transport layer connection to the server 206. As such, in some embodiments, the transport layer connection may comprise a second or a third transport layer connection to the server 206. In other embodiments, the acceleration program 120 may establish the transport layer connection via a first program 222 as previously discussed herein. In some embodiments, the acceleration program 120 established the transport layer connection in response to a request by a first application 220 a of the client 205.

At step 810, the acceleration program 120 intercepts a first request by a first application 220 a to access the server 206. In some embodiments, the request is intercepted at the transport protocol layer before establishing or transmitting the request via the transport layer connection. In other embodiments, the request is intercepted at any protocol layer above the transport layer or above the transport layer connection. In some embodiments, the request is intercepted by a first program 222. In one embodiment, the request of the application 220 a is a request to open or establish a transport layer connection with the server 206. In another embodiment, the application request is a request to access the server via the established transport layer connection or via the appliance 250.

At step 815, the acceleration program 120 determines whether the transport layer connection is idle or available for use by the first application 220 a, or to communicate the first request of the first application 220 a. In some embodiments, the acceleration program 120 determines from a pool of one or more transport layer connections, which transport layer connection in the pool is idle or free to use by the first application 220 a. In one embodiment, the acceleration program 120 determines the transport layer connection is idle because the acceleration program 120 established the transport layer connection in response to the request, or immediately prior to the request. In some embodiments, the acceleration program 120 may have not received any requests from any application 220 and recognizes this request as the first request to be intercepted and processed by the acceleration program 120. In another embodiment, the acceleration program 120 tracks the number of outstanding responses for any requests transmitted on the transport layer connection, and if there are no outstanding responses, the acceleration program 120 recognizes the transport layer connection is available for use by the first application 220 a. In yet another embodiment, the acceleration program 120 recognizes the transport layer connection is currently idle. For example, the acceleration program 120 may be initiating keep-alive requests to the server to keep the connection open. In some embodiments, the transport layer connection is idle as the last transaction has been completed but the server 206 and/or client 205 has not yet transmitted a RST and/or FIN command.

In some embodiments, the acceleration program 120 may check the content length of a response to determine if the response from the server 206 to the first request of the first application 202 a is complete or otherwise, the acceleration program 120 has received all the data to the response. As mentioned above, these techniques in some embodiments are also used to determine to establish another connection for the pooling technique of the present invention. In regards to this technique of the present invention, FIGS. 9 and 10 will be used to describe checking the content-length parameter of a response in one embodiment, or in another embodiment, a chunked transfer encoding header of a response to determine whether all the data of a response has been received. FIG. 9 depicts a TCP portion of a TCP packet referred to as a TCP segment 900. The TCP segment 900 includes a TCP header 902, and a body 904. The body 904 comprises among other data and information, a HTTP header and message in an embodiment wherein the TCP packet carries an application layer protocol of HTTP. In some embodiments, a content length parameter 906 is located, found or referenced by or in the HTTP header. In one embodiment, the acceleration program 120 of the present invention uses the content length parameter 906 to determine if all the data for a response is received.

FIG. 10 depicts another embodiment of a TCP segment of a TCP packet. In some embodiments of using the HTTP protocol over the transport layer connection, a chunked transfer encoding header may be present and indicating that chunked transfer encoding has been applied to the TCP segment or packet. As such, in this embodiment, the length of the message is defined by the chunked encoding. The chunked encoding modifies the body of the message in order to transfer the message as a series of chunks, each chunk with its own length indicator in a chunk-size field. The TCP segment 1600 includes a TCP header (now shown) and a body. The body comprises, among other information, a HTTP header 1602A-1602C and the message. The HTTP header 1602A-1602C comprises seven chunk-size fields 1606A-1601C, and six chunk message data 1604A-1604F.

The chunk-size field 1606A-1606G are linked together, or otherwise referenced or associated, as illustrated in FIG. 10. The chunk-size field 1606A indicates the length of the message in the chunk message data 1604A, the chunk-size field 1606C indicates the length of the message in the chunk message data 1604C, and so forth. The last chunk-size field 1606G comprises the length value zero indicating that there are no more chunks or any more of the message to follow. In another embodiment, the acceleration program 120 of the present invention determines via the chunk-size fields whether the client 205 has received all the data to a response.

Although FIGS. 9 and 10 generally describes a technique for checking whether all the data for a response to a request has been received, these techniques are applicable to a server 206 or appliance 250 sending an asynchronous message or communication to the client 205. Furthermore, although these techniques are generally described in conjunction with FIGS. 9 and 10 for an HTTP protocol, these techniques can be used for any protocol at any protocol layer that provided an indication of the length of data to be transmitted or received by the client 205. As such, in some embodiment, the acceleration program 120 accesses, extracts, inspects, analyzes or otherwise processes any portion of the network packet, including at any protocol layer, to determine if all the data has yet been received in association with a request, response or communication between the client and the server or appliance. In yet another embodiment, the acceleration program 120 tracks the numbers of bytes transmitted, received and acknowledged between the client 205 and server 206 to determine if any bytes are outstanding between the client 205 and server 206 for an application 220.

By using the content length techniques described above, the acceleration program 120 of the present invention can reuse the same transport layer connection to the server 206 previously used or in the process of use by any other application 220 a-220 n of the client 205. At step 817, the acceleration program 120 determines if the transport layer connection is available to transmit the first request, and if so at step 820 transits the request to the server 206. Otherwise, at step 819, the acceleration program 120 may wait until all the data is received for an outstanding request of an application. For example, the acceleration program 120 may set a timer, for example, to a short time period, and proceed to step 815. In some embodiments, the acceleration program 120 checks if the all the data has been received responsive to a packet processing timer of the network stack 210 of the client 205. In another embodiments, at step 819, the acceleration program 120 establishes another transport layer connection to transmit the first request of the first application 220 a.

At step 820, the acceleration program 120 may track which application 220 currently has an outstanding request or response on the connection, or is currently using the connection. For example, only one application 220 at a time may transmit a request and receive a response on the connection. As such, the acceleration program 120 understands which application 220 is using the connection. In some embodiments, the acceleration program 120 uses one port number for the transport layer connection communication for all applications 220 a-220 n of the client 205 sharing the connection. In some cases, the acceleration program 120 tracks the requests and outstanding responses for the requests on an application by application basis. In some embodiments, the acceleration program 120 associates a process id of the application 220 with the request. In yet another embodiment, the acceleration program 120 transmits the request of the first application 220 a with a request of the second application 220 b in the same network packet or packets, TCP segment or segments. In other embodiments, the acceleration program 120 transmits a plurality of requests of applications 220 a-220 n via the same transport layer connection as part of a series of TCP segments of one or more TCP segment windows.

In other embodiments, the acceleration program 120 uses a port numbering mechanism and/or scheme to track and recognize which response or message received is for which application 220 a-220 n. In other embodiments, the acceleration program 120 provides and associates a port number with the application 220, and modifies the port number in the TCP network packet to be transmitted to the application's assigned port number. In another embodiment, the port number is provided by the application 220 and the acceleration program 120 changes or otherwise provides the port number accordingly in the TCP network packet. As such, in some embodiments, the acceleration program 120 may interweave requests from a plurality of applications 220 a-220 n of the client 205 such that applications 220 a-220 n may use the transport layer connection at the same time.

At step 825, the acceleration program 120 receives a response to the first request of the first application 220 a from the server 206, such as via appliance 205, and provides the response to the first application 220 a. In some embodiments, the acceleration program 120 provides the response to the first application 220 a via the network stack 210, such as allowing or initiating the processing of the response by the protocol layers above the transport layer of the connection. In another embodiment, the first program 222 provides the response to the first application 220 a. In other embodiments, the acceleration program 120 may provide the response to the first application 220 a via an inter-process communication mechanism or an interface, such as an API. In some embodiments, the acceleration program 120 only receives a portion of the response, such as a first chunk in a multi-chunk message as described in FIG. 10.

At step 830, the acceleration program 120 intercepts a request of a second application 220 b to access the server 206. In some embodiments, the acceleration program 120 intercepts the request of the second application 220 b prior to step 825. In other embodiments, the acceleration program 120 intercepts the request of the second application 220 b during receipt of the response at step 825. In another embodiment, the acceleration program 120 intercepts the request of the second application 220 b prior to the client 205 or acceleration program 120 receiving all the data for a response of the first request of the first application 220 a. Upon interception of the request of the second application 220 b, the acceleration program 120 proceeds to step 815 in an embodiment of the present invention to determine whether to multiplex the second request via the transport layer connection or whether to establish another transport layer connection, such as another connection in a pool of connections. In other embodiments, the acceleration program 120 transmits the request of the second application 220 b via the same connection as the first application 220 a while the first application 220 a has an outstanding response or has not received all the data from the response of the first request. In another embodiment, the acceleration program 120 transmits the request of the second application 220 b after the first application 220 a has received the response and prior to any generated RST and/or FIN commands are generated in connection with the first application 220 a.

Although the acceleration program 120 has generally been discussed in relation to the client-side implementation and execution of acceleration techniques, the acceleration program 120 interfaces and works in conjunction with the appliance 250, which also implements and executes appliance-side acceleration techniques. In one embodiment, the client-side acceleration program 120 and the appliance 250 may work in conjunction with each other to perform a plurality of the acceleration techniques of the present invention on communications between the clients 205 a-205 n and the servers 206 a-206 n. In some embodiments, the client-side acceleration program 120 and the appliance 250 both provide TCP pooling and multiplexing, such as to provide a cascading or end-to-end pooling and multiplexing mechanism between clients 205 a-205 n and servers 206 a-206 n. For example, the acceleration program 120 may provide a first pooled transport layer connection to the appliance 250, which in turns provides a second pooled transport layer connection to the server 206 a-206 n. In another example, the acceleration program 120 may multiplex an application request via a first pooled transport layer connection on the client 205 a-205 n, which in turns is multiplexed by the appliance 250 via the second pooled transport layer connection to the server 206 a-206 n. In some embodiments, the acceleration program 120 provides a throttling mechanism for transmitting requests from the client 205 a-205 n while the appliance 205 provides a throttling mechanism for transmitting responses from the servers 206 a-206 n to the clients 205 a-205 n. In another embodiment, the acceleration program 120 performs client-side caching for the client 205 while the appliance 250 provides caching of objects, such as dynamically generated objects, for the client 205 a-205 n along with other clients 205 a-205 n.

In some embodiments, in addition to or in conjunction with performing acceleration techniques on the client 205 and/or appliance, the acceleration program 120 and the appliance may provide a virtual private network connection and communications between the client 205 and a network 204 access via the appliance 250. In another embodiment, the acceleration program 120 may compress data communicated from an application 220, and the appliance 250 may decompress the compressed data upon receipt thereof. Conversely, appliance 250 may compress data communicated from an application 220 on the server 206 on a private data communication network 204′ and the acceleration program 120 may decompress the compress data upon receipt thereof. Also, the acceleration program 120 and appliance 250 may act as endpoints in an encrypted data communication or tunneling session, in which the acceleration program 120 encrypts data communicated from an application 220, and appliance 250 decrypts the encrypted data upon receipt thereof. In a similar manner, appliance 250 encrypts data communicated from an application 220 on private data communication network and the acceleration program 120 may decrypt the data upon receipt thereof.

In view of the structure, function and operations of the client-side acceleration deployment and execution techniques described herein, the present invention provides a plurality of acceleration techniques on the client deployed efficiently and also executed in an efficient and transparent manner on the client. In some embodiments, the present invention avoids the installation of an appliance-based or server-based accelerator between the client and a public data communication network. Furthermore, because the acceleration program is dynamically provided to client 205, and automatically installed and executed on the client 205, upon a network, acceleration can be achieved on any client machine. Also, because the acceleration program is stored and dynamically downloaded from the appliance 250 or a server, upgrades and/or maintenance to the acceleration program 120 can be done once, and deployed dynamically and automatically to clients as they access the network. Additionally, the present invention works in conjunction with an appliance-side accelerator to perform end-to-end acceleration from client to appliance to server.

While various embodiments of the present invention have been described above, it should be understood that they have been presented by way of example only, and not limitation. Thus, it will be understood by those skilled in the relevant art(s) that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined in the appended claims. Accordingly, the breadth and scope of the present invention should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents. 

What is claimed:
 1. A method for accelerating access by the client to a server by pooling on the client one or more transport layer connections to the server, the method comprising the steps of: intercepting, by an acceleration program on the client, a first request by a first application to establish a first transport layer connection with a server; establishing, by the acceleration program, a transport layer connection between the acceleration program and the server; intercepting, by the acceleration program, a second request by a second application to establish a second transport layer connection with the server; determining, by the acceleration program based on a content length parameter or a chunk-size field in an application layer communication between the first application and the server, that the communication between the first application and the server is complete and the first application's use of the established transport layer connection is idle; and using, by the acceleration program, responsive to the determination, the established transport layer connection to provide the requested transport layer connection for the second application.
 2. The method of claim 1, comprising transmitting, by an appliance, the acceleration program to the client upon a request from the client to establish one of a connection or a session with the server.
 3. The method of claim 2, comprising upon receipt of the acceleration program, automatically installing and executing, by the client, the acceleration program.
 4. The method of claim 1, wherein the acceleration program comprises a filter device driver interfaced to a transport layer of a network stack of the client.
 5. The method of claim 1, comprising multiplexing, by the acceleration program, requests from a plurality of applications on the client via the established transport layer connection.
 6. The method of claim 1, comprising performing, by the acceleration program, on the client one of the following acceleration techniques: compression; decompression; Transmission Control Protocol multiplexing; Transmission Control Protocol buffering; and caching.
 7. The method of claim 1, comprising performing, by the acceleration program, one of encryption or decryption of communications between the client and the server.
 8. The method of claim 1, comprising closing, by the acceleration program, the first transport layer connection upon receipt of a reset or finish command.
 9. The method of claim 1, comprising maintaining, by the acceleration program, the transport layer connection open during a period of idle activity between the server and one of the first application or the second application.
 10. The method of claim 9, comprising inserting, by the acceleration program, in a communication from the client to the server an instruction to keep the transport layer connection open.
 11. The method of claim 1, comprising determining, by the acceleration program, the transport layer connection is currently being used by one of the first application or the second application by comparing the number of bytes transmitted to and acknowledged from the server for each application.
 12. The method of claim 1, further comprising determining, by the acceleration program, the transport layer connection is currently being used by the first application, and opening a second transport layer connection between the acceleration program and the server for use by the second application.
 13. The method of claim 1, wherein establishing the transport layer connection further comprises establishing the transport layer connection between the acceleration program and an appliance, the appliance in communications with the server.
 14. The method of claim 13, comprising establishing, by the appliance, a pool of one or more transport layer connections for use by the acceleration program.
 15. The method of claim 1, comprising executing, by the client, the acceleration program, transparently to one of a network layer, a session layer, or application layer of a network stack of the client.
 16. The method of claim 1, comprising executing, by the client, the acceleration program, transparently to one of the first application, the second application, or the server.
 17. A system for accelerating access by the client to one or more servers by pooling on the client one or more transport layer connections to the server, the system comprising: means for intercepting, by an acceleration program on the client, a first request by a first application to establish a first transport layer connection with a server; means for establishing, by the acceleration program, a transport layer connection between the acceleration program and the server; means for intercepting, by the acceleration program, a second request by a second application to establish a second transport layer connection with the server; means for determining, by the acceleration program based on a content length parameter or a chunk-size field in an application layer communication between the first application and the server, that the communication between the first application and the server is complete and the first application's use of the established transport layer connection is idle; and means for using, by the acceleration program, the established transport layer connection to provide the requested transport layer connection for the second application.
 18. The system of claim 17, comprising means for automatically installing and executing, by the client, the acceleration program.
 19. The system of claim 17, comprising an appliance transmitting the acceleration program to the client upon a request from the client to establish one of a connection or a session with the server.
 20. The system of claim 17, wherein the acceleration program comprises a filter device driver interfaced to a transport layer of a network stack of the client.
 21. The system of claim 17, comprising means for multiplexing, by the acceleration program, requests from a plurality of applications on the client via the second transport layer connection.
 22. The system of claim 17, wherein the acceleration program performs on the client one of the following acceleration techniques: compression; decompression; Transmission Control Protocol (TCP) multiplexing; TCP buffering; and caching.
 23. The system of claim 17, wherein the acceleration program performs one of encryption or decryption of communications between the client and the server.
 24. The system of claim 17, comprising means for closing, by the acceleration program, the transport layer connection upon receipt of a reset or finish command.
 25. The system of claim 17, wherein the acceleration program maintains the transport layer connection open during a period of idle activity between the server and one of the first application or the second application.
 26. The system of claim 25, wherein the acceleration program inserts in a communication from the client to the server an instruction to keep the connection open.
 27. The system of claim 17, wherein the acceleration program determines the transport layer connection is currently being used by one of the first application or the second application by comparing the number of bytes transmitted to and acknowledged from the server for each application.
 28. The system of claim 17, wherein the acceleration program determines the transport layer connection is currently being used by the first application, and opens a second transport layer connection between the acceleration program and the server for use by the second application.
 29. The system of claim 17, comprising means for establishing the second transport layer connection between the acceleration program and an appliance, the appliance in communications with the server.
 30. The system of claim 17, wherein the appliance comprises a pool of one or more transport layer connections for use by the acceleration program.
 31. The system of claim 17, wherein the acceleration program executes on the client transparently to one of a network layer, a session layer, or application layer of a network stack of the client.
 32. The system of claim 17, wherein the acceleration program executes on the client transparently to one of the first application, the second application, or the server.
 33. The method of claim 1, wherein determining that the first application's use of the established transport layer connection is idle further comprises checking that the first application has received all application layer data from the server to a response to a request of the first application.
 34. The method of claim 1, wherein determining that the first application's use of the established transport layer connection is idle further comprises checking that the first application is not using the established transport layer connection prior to receipt of a close request for the established transport layer connection.
 35. A method for accelerating access by the client to a server by pooling on the client one or more transport layer connections to the server, the method comprising: intercepting, by an acceleration program on the client, a first request by a first application to establish a first transport layer connection with a server; intercepting, by the acceleration program, a second request by a second application to establish a second transport layer connection with the server; determining, by the acceleration program based on checking application layer communications between the first application and the server, that the first application's use of the established transport layer connection is idle by checking that the first application is not using the established transport layer connection prior to receipt of a timeout for the established transport layer connection; and using, by the acceleration program, responsive to the determination, the established transport layer connection to provide the requested transport layer connection for the second application. 